Simple and expressive JSON format for describing rich-text content and their changes
BSD 3-Clause "New" or "Revised" License
914
stars
130
forks
source link
Delta `alignment` attribute is ambiguous and doesn't have the right value #83
Closed
malomarrec closed 11 months ago
Raising this here, although it's unclear if this is an issue with delta or quill itself.
Problem
The delta value doesn't seem to have the right align attribute. For example, I'd expect this:
to have a delta value of:
But it has the value:
which is very ambiguous: reading this value from outside quill, there's no way I can determine that the word "right" needs to be aligned right.
Codesandbox: https://codesandbox.io/s/blissful-kalam-u04hsn?file=/src/App.tsx
Versions
I was able to reproduce this with a wide combination of versions of
react-quill
, anddelta
. The codesandbox example is using:quill-delta
: 3.2.0react-quill
: 1.3.4