mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-05 04:19:07 +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: {
|
editor: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler(editor) {
|
handler(editor) {
|
||||||
if (editor.element) {
|
if (editor && editor.element) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$el.append(editor.element.firstChild)
|
this.$el.append(editor.element.firstChild)
|
||||||
editor.setParentComponent(this)
|
editor.setParentComponent(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user