Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix placeholder showing always in first line of editor

Abdullah Attacf9aeecd7e46
diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css
index a5c157686..d7bd810c6 100644
--- a/packages/editor/styles/styles.css
+++ b/packages/editor/styles/styles.css
@@ -6,7 +6,7 @@
font-family: inherit;
}
-.ProseMirror p.is-empty:first-child::before {
+.ProseMirror p.is-editor-empty::before {
color: var(--placeholder);
content: attr(data-placeholder);
float: left;