mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-04 19:59:02 +08:00
fix a bug in editor-content component
This commit is contained in:
parent
4d70a52a22
commit
57b9c77e28
@ -11,7 +11,7 @@ export default {
|
||||
editor: {
|
||||
immediate: true,
|
||||
handler(editor) {
|
||||
if (editor.element) {
|
||||
if (editor && editor.element) {
|
||||
this.$nextTick(() => {
|
||||
this.$el.append(editor.element.firstChild)
|
||||
editor.setParentComponent(this)
|
||||
|
Loading…
Reference in New Issue
Block a user