I know that on instantiation of a Quill editor, there is a placeholder option. Is there a way that I can change this placeholder dynamically after the editor is instantiated?
相关问题
- How to make quill editor required?
- Quill Editor: Restricted Editing based on tags/cla
- Include Headings in Quill Rich Editor
- Quill table with Angular, not working on edit mode
- How to paste plain text in a Quill-based editor
相关文章
- Implement custom editor for Quill blot
- Get HTML from Delta on Quill
- Quill - Make Editor wrap text in Div instead of P
- Why does Quill filter it's content?
- Dynamically change Quill placeholder
- How to add a non editable tag to content in Quill
- ES6/Babel Class constructor cannot be invoked with
- How do I post contents of a Quill editor in a form
The placeholder is implemented with a CSS rule:
So you can do
quill.root.dataset.placeholder = 'Your new placeholder';
If you are using react-quill
The placeholder in the tooltip is coming from the value of the
data-link
attribute. So you can replace the value with your own when the component finishes mounting.Here is the code:
Note: I am using bubble theme