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