Closed vadimt2 closed 1 year ago
I have found a solution.
let Inline = Quill.import('blots/inline');
class TestBlot extends Inline {
static blotName = 'spell_error';
static className = 'spell_error';
static tagName = 'span';
static formats(): boolean {
return true;
}
}
Quill.register(TestBlot, true);
https://stackoverflow.com/questions/75559480/custom-attribute-is-deleted-on-setcontents-in-quill Steps for Reproduction
css/scss
Create BlockQuote
this code is not working:
or this one is not working as well:
if you do \n 2 new line, then it's working.
Expected behavior: in one line
<p><span class="test>Quill1</span><span class="test>Quill2</span></p>
or
<p>Hello <span class="test>World!</span></p>
Actual behavior:
<p>Hello World!</p>
when you are using custom attribute in attributes it's not working at all as well.
{ insert: 'World!', attributes: { 'custom-blockquote': true } },
and if use let Inline = Quill.import('blots/inline'); it's not working at all.
Platforms: Angular 15 Include browser, operating system and respective versions Chrome