Replies: 1 comment 1 reply
-
I think that's because alignment is a Block Style, not a Line Style. Block Style is applied at the end of the block itself. Actually your "Test 1" line is also contained in a block, but not specifying its alignment, which means defaulted to Left Align. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following showing in my quill editor
Test 2 is centered using the
alignment: center
toolbar buttonBut my delta when I output as a string looks like this:
It looks like the alignment center is put in after the carriage return after Test 2
Is this correct? I've build my own parser for quill delta which works well except for alignment. How could you logically tackle having the
align:center
attribute when no where is it specified that Test 1 and Test 2 would have a different attribute?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions