Relative Content

Tag Archive for javascriptquill

Quill.js removes tags like “DIV” and styles and classes

I am working on WYSIWIG editor, where I can update HTML in special popup and insert it back into Quill editor as a semantic HTML. The resulting HTML should be exactly like we edited. But when I try to change tags to “div”, they are turned to “p” and classes are removed.

Handling tables in quill

I’m trying to use tables with the Quill WYSIWYG editor. I’m trying to do it in the sandbox: https://quilljs.com/playground/snow . I’ve added ['table'] to the toolbar, so now it looks like this:

How to prevent Quill from switching to on ENTER in header mode?

I’m using the Quill 2.0.2 JavaScript library to edit content with different heading styles (h1 to h4). Currently, when I’m typing with the h2 style and press ENTER, Quill switches to the “Normal” style (<p>). Instead, I want it to switch to the h3 style.