Closed geronimol closed 1 day ago
Custom styles is just a visual configurations, them never have any effect on the Delta result
Custom styles is just a visual configurations, them never have any effect on the Delta result
I think what he might try to do is to have the same content style as Delta JS (#1925), I would suggest changing the style in the Quill JS Editor Element/Component.
Is there an existing issue for this?
Flutter Quill version
9.5.3
Steps to reproduce
I want to set the default text color to red:
The editor shows default text color as red![Captura de pantalla 2024-07-04 a la(s) 17 12 16](https://github.com/singerdmx/flutter-quill/assets/56521222/6345180d-9b35-4fc9-86ac-5be804a31a1e)
But when I save it using
print()![Captura de pantalla 2024-07-04 a la(s) 17 13 11](https://github.com/singerdmx/flutter-quill/assets/56521222/446e14ca-0aaf-4414-83f5-3ff9548fe216)
print()![Captura de pantalla 2024-07-04 a la(s) 17 13 27](https://github.com/singerdmx/flutter-quill/assets/56521222/f7a20c2a-c842-4ef6-a8f5-d145b73e37fc)
Related: #1925
Expected results
Using
controller.document.toDelta()
should save thecustomStyles
Actual results
customStyles
aren't saved when usingcontroller.document.toDelta()
Code sample
Code sample
```dart [Paste your code here] ```Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [Paste your logs here] ```