singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 840 forks source link

quill recording data incorrectly #2329

Open casas1010 opened 1 month ago

casas1010 commented 1 month ago

Is there an existing issue for this?

Flutter Quill version

9.3.1

Steps to reproduce

type 'is is normal text', hit enter set font size to header 1, type 'this is header 1 text', hit enter, set font size to header 2, type 'this is header 2 text', hit enter, set font size to header 1, type 'this is header 1 text', hit enter

Expected results

I think this is what it should look like::

{insert: this is normal text}

{insert: this is header 1 text} {insert:, attributes: {header: 1}}

{insert: this is header 2 text} {insert:, attributes: {header: 2}}

{insert: this is header 1 text} {insert:, attributes: {header: 1}}

Actual results

{insert: this is normal text this is header 1 text}

{insert: , attributes: {header: 1}}

{insert: this is header 2 text}

{insert: , attributes: {header: 2}}

{insert: this is header 1 text}

{insert: , attributes: {header: 1}}

Additional Context

I posted the question on stack overflow but I think that its a bug on quill::

https://stackoverflow.com/questions/79112002/flutter-quill-incorrectly-recording-text-attributes

EchoEllet commented 1 month ago

Can you try with the latest version?