Update lexical to support placeholders and style them up
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user