fix linting error

This commit is contained in:
Philipp Kühn
2018-10-30 22:49:50 +01:00
parent 681c685287
commit 06bb2ab802
3 changed files with 30 additions and 24 deletions

View File

@@ -20,14 +20,16 @@ export default {
}, },
}, },
render(createElement) { render(createElement) {
if (this.editor) { if (!this.editor) {
return createElement('div', this.$scopedSlots.default({ return null
focused: this.editor.view.focused,
focus: this.editor.focus,
commands: this.editor.commands,
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
} }
return createElement('div', this.$scopedSlots.default({
focused: this.editor.view.focused,
focus: this.editor.focus,
commands: this.editor.commands,
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
}, },
} }

View File

@@ -6,14 +6,16 @@ export default {
}, },
}, },
render(createElement) { render(createElement) {
if (this.editor) { if (!this.editor) {
return createElement('div', this.$scopedSlots.default({ return null
focused: this.editor.view.focused,
focus: this.editor.focus,
commands: this.editor.commands,
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
} }
return createElement('div', this.$scopedSlots.default({
focused: this.editor.view.focused,
focus: this.editor.focus,
commands: this.editor.commands,
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
}, },
} }

View File

@@ -20,14 +20,16 @@ export default {
}, },
}, },
render(createElement) { render(createElement) {
if (this.editor) { if (!this.editor) {
return createElement('div', this.$scopedSlots.default({ return null
focused: this.editor.view.focused,
focus: this.editor.focus,
commands: this.editor.commands,
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
} }
return createElement('div', this.$scopedSlots.default({
focused: this.editor.view.focused,
focus: this.editor.focus,
commands: this.editor.commands,
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
}, },
} }