-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Update Placeholder after initialization #9925
Comments
I'd really like to know if there's any ability to do this yet.. Is there an easy way in v37+? @Witoso something probably worth thinking about. CKE5 can be used for a variety of scenarios such as chat apps. For example, in Slack, the placeholder will change depending on which channel or chat you are in. Having a convenient way to update the root editable placeholder would be really nice.. |
@urbanspr1nter thanks for bringing this to my attention! I haven't found an easy way to do that, unfortunately :/ I will keep it in my mind in our future API discussion. |
Some precedence is with viewportOffset config. At runtime it is reflected in Currently the Logically, the placeholder is a property of a specific By doing so we could remove the need of passing placeholder text all along, as enablePlaceholder should start listen to the If the integrator wants to change the placeholder value at a runtime would need to execute Remarks
|
…ter-initialization Feature (engine): Placeholders can now be changed after the initialization. This can be done by changing `placeholder` property of the `element` passed to `enablePlaceholder()` helper. Closes #9925. MINOR BREAKING CHANGE (engine): The `enablePlaceholder()` helper now uses a `placeholder` property of passed `element`. It no longer takes the placeholder text as a `text` argument.
Hello,
I'd like to have the ability, for an Inline editor, to update the placeholder at runtime (i.e. after the editor has been created). Is there any way to do that? Currently the placeholder is set in the configuration options, so I can't change it later. I found this thread #7383 but I think nothing has changed yet.
Thanks!
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: