move component to vue package
This commit is contained in:
@@ -3,5 +3,4 @@ import { Editor } from './src/Editor'
|
||||
export default Editor
|
||||
export { Editor }
|
||||
export { default as Extension } from './src/Extension'
|
||||
export { default as Node } from './src/Node'
|
||||
export { default as EditorContent } from './src/components/EditorContent'
|
||||
export { default as Node } from './src/Node'
|
||||
@@ -1,32 +0,0 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
export default Vue.extend({
|
||||
props: {
|
||||
editor: {
|
||||
default: null,
|
||||
type: Object,
|
||||
},
|
||||
},
|
||||
|
||||
watch: {
|
||||
editor: {
|
||||
immediate: true,
|
||||
handler(editor) {
|
||||
if (editor && editor.element) {
|
||||
this.$nextTick(() => {
|
||||
this.$el.appendChild(editor.element.firstChild)
|
||||
// editor.setParentComponent(this)
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
render(createElement) {
|
||||
return createElement('div')
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
this.editor.element = this.$el
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user