Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamically change Quill toolbar visibility

I know that on instantiation of a Quill editor, there is a toolbar visibility option. Is there a way that I can change this toolbar visibility dynamically after the editor is instantiated?

options = {
            debug: 'info',
            placeholder: "Place your content here",
            readOnly: false,
            theme: 'snow',
            modules: {
                toolbar: toolbarOptions --> i want to change this property as false at runtime
            },
    };
like image 292
Ananth Ganapathy Avatar asked Oct 26 '25 05:10

Ananth Ganapathy


1 Answers

To clarify the option is not just visibility, it's whether to create a toolbar at all or not. A toolbar cannot be added or removed after the editor is initialized. If you just want to control visibility, one option is just to use CSS to show/hide the toolbar.

like image 153
jhchen Avatar answered Oct 29 '25 08:10

jhchen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!