fix a bug in editor-content component

This commit is contained in:
Philipp Kühn 2018-11-14 17:38:07 +01:00
parent 4d70a52a22
commit 57b9c77e28

View File

@ -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)