Dynamically change Quill toolbar visibility

Viewed 2733

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
            },
    };
3 Answers

you can access the tooltip hide/show function like this: quill.theme.tooltip.hide() or quill.theme.tooltip.show()

Related