Can you use"<div>" instead "<p>"?
<div id="editor">
<p>Hello World!</p>
<p>Some initial <strong>bold</strong> text</p>
<p><br></p>
</div>
Result:
<div id="editor">
<div>Hello World!</div>
<div>Some initial <strong>bold</strong> text</div>
<div><br></div>
</div>
Yes you just need to change the default Block tag name:
var Block = Quill.import('blots/block');
Block.tagName = 'DIV';
Quill.register(Block, true);
Here's a demonstration. There will be an in depth guide on using Parchment / Blots soon.
Thanks for the solution!
Is it possible to customize this for just one editor on a page as I have multiple editors with different use cases on the same page?
Any help would be appreciated!
Most helpful comment
Yes you just need to change the default Block tag name:
Here's a demonstration. There will be an in depth guide on using Parchment / Blots soon.