KillerCodeMonkey / ngx-quill

Angular (>=2) components for the Quill Rich Text Editor
MIT License
1.79k stars 262 forks source link

Question: Is it possible to toggle the toolbar #1873

Closed ed4becky closed 5 months ago

ed4becky commented 5 months ago

I would like to display a form field. When the user clicks into the form, the toolbar appears. When they exit the field, the toolbar disappears, but the contents of the editor still display, with proper formatting. This is essentially an inline editor with a toggling toolbar.

KillerCodeMonkey commented 5 months ago

There you have the "bubble" theme. Check the quilljs docs for it

Am 16. Juni 2024 14:48:49 MESZ schrieb Ed Thompson @.***>:

I would like to display a form field. When the user clicks into the form, the toolbar appears. When they exit the field, the toolbar disappears, but the contents of the editor still display, with proper formatting. This is essentially an inline editor with a toggling toolbar.

-- Reply to this email directly or view it on GitHub: https://github.com/KillerCodeMonkey/ngx-quill/issues/1873 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

KillerCodeMonkey commented 5 months ago

https://quilljs.com/docs/customization/themes#bubble

Another solution would be -> play around with onFocus/onBlur or onNativeFocus/onNativeBlur and set a css class at the toolbar node to display none or block in the default snow theme