improve placeholder

This commit is contained in:
Philipp Kühn
2019-12-02 23:05:03 +01:00
parent a0141d3720
commit 1472254913
2 changed files with 14 additions and 4 deletions

View File

@@ -24,9 +24,11 @@ export default {
new BulletList(),
new ListItem(),
new Placeholder({
emptyEditorClass: 'is-editor-empty',
emptyNodeClass: 'is-empty',
emptyNodeText: 'Write something …',
showOnlyWhenEditable: true,
showOnlyCurrent: true,
}),
],
}),
@@ -39,7 +41,7 @@ export default {
</script>
<style lang="scss">
.editor p.is-empty:first-child::before {
.editor p.is-editor-empty:first-child::before {
content: attr(data-empty-text);
float: left;
color: #aaa;