Update lexical to support placeholders and style them up

This commit is contained in:
Jorge Manrubia
2025-05-30 11:07:42 +02:00
parent 5ec09aa5d7
commit 40e2dcae0b
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/basecamp/actiontext-lexical
revision: 375dce0f363411a60ad5a60db2f42f406396c919
revision: 2b025527aacc85a6c2788176528d359826f304ac
specs:
actiontext-lexical (0.1.0)
rails (>= 8.0.2)
@@ -10,6 +10,16 @@ lexical-editor {
}
}
}
&.lexical-editor--empty {
.lexical-editor__content:not(:focus):before {
content: attr(placeholder);
color: currentColor;
opacity: 0.5;
pointer-events: none;
display: block;
}
}
}
.lexical-dialog-actions {