You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is such as an issue that i had with an old version (9.3.13).
This happen because leaf just validate the attributes into the package (harcoded), and the custom attributes, aren't taked as a valid Attribute. But, this is solved at the current version.
This is happening since you're not configure the vsc_quill_delta_to_html package. This package is used at this one, but, is limited on the documentation. I suggest use manually the package, or just passing your custom ConverterOptions and read the offical docs to render you custom attributes.
Is there an existing issue for this?
The question
I currently set my selection as a link like this:
quillController.formatSelection(LinkAttribute('https://www.test.de/user/$value'));
If applied to the text @123, this would result in this output:
<p><a href="https://www.test.de/user/123 " target="_blank">@123 </a></p>
I would now like to add additional classes, for example to also store an ID or an avatarUrl.
I tried this code
quillController.formatSelection(Attribute('id', AttributeScope.inline, asd));
but it always gives me the error
Unable to apply Style to leaf: {Attribute{key: link, scope: AttributeScope.inline, value: https://www.test.de/user/123 }, Attribute{key: id, scope: AttributeScope.ignore, value: asd}} 'package:flutter_quill/src/models/documents/nodes/leaf.dart': Failed assertion: line 31 pos 12: 'value.isInline || value.isIgnored || value.isEmpty'
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: