singerdmx / flutter-quill

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

Text color not worked. #2204

Closed toknT closed 2 months ago

toknT commented 2 months ago

Is there an existing issue for this?

Flutter Quill version

9.4.4

Steps to reproduce

1 . install quill 2 . add editor

Expected results

in line css text color in html

Actual results

the log pring in listen event

I/flutter ( 3972): html: <p>text with co</p>
I/flutter ( 3972): html: <p>text with col</p>
I/flutter ( 3972): html: <p>text with colo</p>
I/flutter ( 3972): html: <p>text with color</p>

Code sample

    void listenHtmlChange() {
      QuillDeltaToHtmlConverter converter = QuillDeltaToHtmlConverter(
        controller.value.document.toDelta().toJson(),
      );
      String html = converter.convert();
      print('html: $html');
      ref.read(editingImportPreviewQuestionProvider.notifier).updateBody(html);
    }

      controller.value.addListener(listenHtmlChange);

Additional Context

No response

CatHood0 commented 2 months ago

This is not an issue from Flutter Quill. You will need to report this on vsc_quill_delta_to_html

EchoEllet commented 2 months ago

Thank you for the report, please report this issue to vsc_quill_delta_to_html repository as it's not part of the Flutter Quill project.