Update index.vue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user