fix linting error
This commit is contained in:
@@ -20,7 +20,10 @@ export default {
|
||||
},
|
||||
},
|
||||
render(createElement) {
|
||||
if (this.editor) {
|
||||
if (!this.editor) {
|
||||
return null
|
||||
}
|
||||
|
||||
return createElement('div', this.$scopedSlots.default({
|
||||
focused: this.editor.view.focused,
|
||||
focus: this.editor.focus,
|
||||
@@ -28,6 +31,5 @@ export default {
|
||||
isActive: this.editor.isActive.bind(this.editor),
|
||||
markAttrs: this.editor.markAttrs.bind(this.editor),
|
||||
}))
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -6,7 +6,10 @@ export default {
|
||||
},
|
||||
},
|
||||
render(createElement) {
|
||||
if (this.editor) {
|
||||
if (!this.editor) {
|
||||
return null
|
||||
}
|
||||
|
||||
return createElement('div', this.$scopedSlots.default({
|
||||
focused: this.editor.view.focused,
|
||||
focus: this.editor.focus,
|
||||
@@ -14,6 +17,5 @@ export default {
|
||||
isActive: this.editor.isActive.bind(this.editor),
|
||||
markAttrs: this.editor.markAttrs.bind(this.editor),
|
||||
}))
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -20,7 +20,10 @@ export default {
|
||||
},
|
||||
},
|
||||
render(createElement) {
|
||||
if (this.editor) {
|
||||
if (!this.editor) {
|
||||
return null
|
||||
}
|
||||
|
||||
return createElement('div', this.$scopedSlots.default({
|
||||
focused: this.editor.view.focused,
|
||||
focus: this.editor.focus,
|
||||
@@ -28,6 +31,5 @@ export default {
|
||||
isActive: this.editor.isActive.bind(this.editor),
|
||||
markAttrs: this.editor.markAttrs.bind(this.editor),
|
||||
}))
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user