Replies: 3 comments
-
|
We should strive to follow Quill JS standard. |
Beta Was this translation helpful? Give feedback.
-
|
Code wise it is at lib/src/widgets/text_line.dart |
Beta Was this translation helpful? Give feedback.
-
|
Hi @singerdmx, thanks for the collaborate invite. I'll fully learn the code base first. I think any modification especially about behavior and rendering should be discussed first to fully compliant with the Quill JS standard. This doesn't mean that we cannot add specific features that originally does not exist in Quill JS, but, at least the original behavior should be closely maintained. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi @singerdmx ,
I'm currently creating a PR for this repository to add Text Alignment capability. While doing this, I've noticed a slightly weird behavior on the rendering of the Delta data. For example, it turns out that combining
alignandheaderattributes will render thealignonly. If we remove thealign, then theheaderwill be rendered correctly.This has led me to believe, maybe some other inconsistencies can also be found somewhere in the code (I haven't check thoroughly). So, if we take a look at how originally the Quill (from QuillJS) block formats should behave, especially in their exclusivity, I've managed to summarize this information below:
Quill Block Formats Behavior
(Checked against latest Quill JS version 1.3.6 using this codepen.io)
Description:
indentvalue can offset a centered text (align:center).indentvalue determines list's numbering scheme, ex.:indent: 1sets the numbering scheme to 1, 2, 3...,indent: 2changed the numbering scheme to a, b, c..., etc.indentrespects thedirection, ex.:direction: rtlcan be indented with backwardindent.indent: rtlalways setsalign: rightif thealignattribute is not present.direction: ltrattribute is never written to Quill data.align: leftattribute is never written to Quill data.My question is:
Thanks!.
Beta Was this translation helpful? Give feedback.
All reactions