Merge pull request #137 from vanpav/patch-1

Update Placeholder Example
This commit is contained in:
Philipp Kühn
2018-12-19 21:52:52 +01:00
committed by GitHub

View File

@@ -24,6 +24,7 @@ export default {
new ListItem(), new ListItem(),
new Placeholder({ new Placeholder({
emptyClass: 'is-empty', emptyClass: 'is-empty',
emptyNodeText: 'Write something cool or die!'
}), }),
], ],
}), }),
@@ -37,7 +38,7 @@ export default {
<style lang="scss"> <style lang="scss">
.editor p.is-empty:first-child::before { .editor p.is-empty:first-child::before {
content: 'Start typing…'; content: attr(data-empty-text);
float: left; float: left;
color: #aaa; color: #aaa;
pointer-events: none; pointer-events: none;