Feature Request: Placeholder extension should support more granular control over when it shows #5636
Haraldson
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Today, we have the
showOnlyCurrent
configuration property, that takes a boolean.However, the
placeholder
property can be a string or a function that returns a string, allowing us to add more logic in order to differentiate placeholders for titles, headings, paragraphs and so on.What the
showOnlyCurrent
configuration property does not allow for, is to specify things like ”it should only show if it’s current and of type X“.Use Case
I have a document schema where a title node is fixed at the beginning. It’s always there, and starts out empty, and thus has an “Add a title…” placeholder. I want this to always show, as long as no title has been entered.
Paragraphs in the body text also have placeholders, and for these, I only want the placeholder to show for the current one.
Type
Other
Beta Was this translation helpful? Give feedback.
All reactions