mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
62e82150a1
@ -47,7 +47,13 @@ export const RichText = connect(
|
|||||||
modules={modules}
|
modules={modules}
|
||||||
formats={formats}
|
formats={formats}
|
||||||
value={resultValue}
|
value={resultValue}
|
||||||
onChange={onChange}
|
onChange={(value) => {
|
||||||
|
if (value === '<p><br></p>') {
|
||||||
|
onChange(undefined);
|
||||||
|
} else {
|
||||||
|
onChange(value);
|
||||||
|
}
|
||||||
|
}}
|
||||||
readOnly={disabled}
|
readOnly={disabled}
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user