Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to provide a custom placeholder #5551

Open
tcitworld opened this issue Mar 22, 2024 · 1 comment
Open

Allow to provide a custom placeholder #5551

tcitworld opened this issue Mar 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tcitworld
Copy link
Member

tcitworld commented Mar 22, 2024

Is your feature request related to a problem? Please describe.
When using the editor from another app with OCA.Text.createEditor, I can't set the default value for the placeholder

Describe the solution you'd like
The Placeholder extension should use a placeholder option in RichText.js, which can be passed as a prop to Editor/MarkdownContentEditor and finally exposed to createEditor().

Describe alternatives you've considered
Adding my own configured instance of the Placeholder extension, if #5550 is available.

Or possibly directly changing the extension's configured value for the placeholder, if possible after the editor has loaded?

@tcitworld tcitworld added the enhancement New feature or request label Mar 22, 2024
@juliushaertl
Copy link
Member

I think providing a custom placeholder sounds like a good idea, for the generic ability to provide extensions I'd be more skeptical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants