mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-19 06:43:02 +08:00
Update Placeholder.js
This commit is contained in:
parent
6e78cc90b9
commit
00a691ed14
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user