fix some examples
This commit is contained in:
@@ -13,9 +13,9 @@ export default {
|
||||
this.$nextTick(() => this.$el.append(element.firstChild))
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
render(createElement) {
|
||||
return createElement('div')
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,11 +22,10 @@ export default {
|
||||
render(createElement) {
|
||||
if (this.editor) {
|
||||
return createElement('div', this.$scopedSlots.default({
|
||||
nodes: this.editor.menuActions.nodes,
|
||||
marks: this.editor.menuActions.marks,
|
||||
focused: this.editor.view.focused,
|
||||
focus: this.editor.focus,
|
||||
commands: this.editor.commands,
|
||||
isActive: this.editor.isActive.bind(this.editor),
|
||||
}))
|
||||
}
|
||||
},
|
||||
|
||||
@@ -8,8 +8,6 @@ export default {
|
||||
render(createElement) {
|
||||
if (this.editor) {
|
||||
return createElement('div', this.$scopedSlots.default({
|
||||
nodes: this.editor.menuActions.nodes,
|
||||
marks: this.editor.menuActions.marks,
|
||||
focused: this.editor.view.focused,
|
||||
focus: this.editor.focus,
|
||||
commands: this.editor.commands,
|
||||
|
||||
@@ -22,11 +22,10 @@ export default {
|
||||
render(createElement) {
|
||||
if (this.editor) {
|
||||
return createElement('div', this.$scopedSlots.default({
|
||||
nodes: this.editor.menuActions.nodes,
|
||||
marks: this.editor.menuActions.marks,
|
||||
focused: this.editor.view.focused,
|
||||
focus: this.editor.focus,
|
||||
commands: this.editor.commands,
|
||||
isActive: this.editor.isActive.bind(this.editor),
|
||||
}))
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user