6 ms·
In the comments, you mention how Quill is extensible. Does Quill's extensibility enable the creation of a hierarchical level that resembles an HTML <section> el
by scottmessinger 10y ago
In the comments, you mention how Quill is extensible. Does Quill's extensibility enable the creation of a hierarchical level that resembles an HTML <section> element? From what I can tell, Quill/Parchment divides documents into block blots, inline blots, and embedded blots[1]. If I wanted to create a group of block blots, could that be done with Quill? In HTML, this would look something like:
<section>
<h1>First Section</h1>
<p>Text...</p>
<p>Text...</p>
</section>
<section>
<h1>Second Section</h1>
<p>Text...</p>
<p>Text...</p>
</section>
[1] https://github.com/quilljs/parchment#block-blot https://github.com/quilljs/parchment#block-blot
- jhchen 10y agoYou can use a container blot, which is how lists are implemented. A container blot represents <ol> and a block blot represents <li>.