mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac: rich text input behaviour
This commit is contained in:
parent
e67fdce727
commit
fac8c3259c
1 changed files with 4 additions and 0 deletions
|
|
@ -158,6 +158,10 @@
|
|||
const newValue = turndownService.turndown(editor.getHTML());
|
||||
if (value !== newValue) {
|
||||
value = newValue;
|
||||
|
||||
if (value === '') {
|
||||
editor.commands.clearContent();
|
||||
}
|
||||
}
|
||||
},
|
||||
editorProps: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue