I am working with Quill Editor. Its been nice so far. My question is that is there any way to make Quill Editor go full-screen (sort of distraction free mode) by a button in the toolbar? If not than how can I proceed to implement this on my own?
相关问题
- 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
To go fullscreen I think it is easiest to use a library, for example screenfull.js - https://github.com/sindresorhus/screenfull.js/
As for adding custom buttons to the Quill toolbar, I have found two ways.
Method 1:
At least simple buttons can be added directly through the toolbar options. Something like this: http://codepen.io/nik10110/pen/PbyNoW
Method 2:
Set the toolbar to use custom Html rather than specifying the buttons through javascript. The official documentation ( http://quilljs.com/docs/modules/toolbar/ ) is quite detailed for this.
Here's a tweaked code sample from there: