add element option

This commit is contained in:
Philipp Kühn
2020-04-11 14:33:58 +02:00
parent 1e7231286d
commit 1bb9864db8
2 changed files with 6 additions and 5 deletions

View File

@@ -12,9 +12,9 @@ export default Vue.extend({
editor: {
immediate: true,
handler(editor) {
if (editor && editor.element) {
if (editor && editor.options.element) {
this.$nextTick(() => {
this.$el.appendChild(editor.element.firstChild)
this.$el.appendChild(editor.options.element.firstChild)
// editor.setParentComponent(this)
})
}
@@ -27,6 +27,6 @@ export default Vue.extend({
},
beforeDestroy() {
this.editor.element = this.$el
this.editor.options.element = this.$el
},
})