refac: rich text input behaviour
This commit is contained in:
1 parent
e67fdce727
commit
fac8c3259c
1 file changed
+4
@@ -158,6 +158,10 @@
|
||||
const newValue = turndownService.turndown(editor.getHTML());
|
||||
if (value !== newValue) {
|
||||
value = newValue;
|
||||
|
||||
if (value === '') {
|
||||
editor.commands.clearContent();
|
||||
}
|
||||
}
|
||||
},
|
||||
editorProps: {
|
||||
|
||||
Reference in new issue
Block a user