Update Placeholder.js

This commit is contained in:
Ivan 2018-12-10 15:55:20 +03:00 committed by GitHub
parent 6e78cc90b9
commit 00a691ed14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ export default class Placeholder extends Extension {
get defaultOptions() {
return {
emptyNodeClass: 'is-empty',
emptyNodeText: 'Write something...'
emptyNodeText: 'Write something...',
}
}
@ -29,7 +29,7 @@ export default class Placeholder extends Extension {
const decoration = Decoration.node(pos, pos + node.nodeSize, {
class: this.options.emptyNodeClass,
'data-empty-text': this.options.emptyNodeText
'data-empty-text': this.options.emptyNodeText,
})
decorations.push(decoration)
})