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.
-
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
align
andheader
attributes will render thealign
only. If we remove thealign
, then theheader
will 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:
indent
value can offset a centered text (align
:center
).indent
value determines list's numbering scheme, ex.:indent: 1
sets the numbering scheme to 1, 2, 3...,indent: 2
changed the numbering scheme to a, b, c..., etc.indent
respects thedirection
, ex.:direction: rtl
can be indented with backwardindent
.indent: rtl
always setsalign: right
if thealign
attribute is not present.direction: ltr
attribute is never written to Quill data.align: left
attribute is never written to Quill data.My question is:
Thanks!.
Beta Was this translation helpful? Give feedback.
All reactions