refac: rich text input behaviour
This commit is contained in:
@@ -158,6 +158,10 @@
|
|||||||
const newValue = turndownService.turndown(editor.getHTML());
|
const newValue = turndownService.turndown(editor.getHTML());
|
||||||
if (value !== newValue) {
|
if (value !== newValue) {
|
||||||
value = newValue;
|
value = newValue;
|
||||||
|
|
||||||
|
if (value === '') {
|
||||||
|
editor.commands.clearContent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editorProps: {
|
editorProps: {
|
||||||
|
|||||||
Reference in New Issue
Block a user