fix(publish): empty content
This commit is contained in:
parent
2ed22678ed
commit
a812ea098f
2 changed files with 10 additions and 1 deletions
|
@ -86,6 +86,12 @@ export function useTiptap(options: UseTiptapOptions) {
|
|||
editable: true,
|
||||
})
|
||||
|
||||
watch(content, (value) => {
|
||||
if (editor.value?.getHTML() === value)
|
||||
return
|
||||
editor.value?.commands.setContent(value || '', false)
|
||||
})
|
||||
|
||||
return {
|
||||
editor,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue