mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac: rich text input behaviour
This commit is contained in:
parent
e67fdce727
commit
fac8c3259c
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user