base commit
This commit is contained in:
@@ -46,7 +46,7 @@ export function RichTextMessageEditor({
|
||||
if (!editor) return
|
||||
const normalizedValue = value.trim() ? value : '<p></p>'
|
||||
if (editor.getHTML() === normalizedValue) return
|
||||
editor.commands.setContent(normalizedValue, false)
|
||||
editor.commands.setContent(normalizedValue, { emitUpdate: false })
|
||||
}, [editor, value])
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user