fix some examples

This commit is contained in:
Philipp Kühn
2018-10-29 23:31:13 +01:00
parent 253596fb35
commit 68793ea385
11 changed files with 51 additions and 55 deletions

View File

@@ -13,9 +13,9 @@ export default {
this.$nextTick(() => this.$el.append(element.firstChild))
}
},
}
},
},
render(createElement) {
return createElement('div')
},
}
}

View File

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

View File

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

View File

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