Skip to content

Got "Unsupported operation: Color code not supported" issue when Delta using color name instead of hex #2586

@xiabui

Description

@xiabui

Have you checked for an existing issue?

Flutter Quill Version

flutter_quill: ^11.4.1

Steps to Reproduce

  1. Create quill detla of object with following format
{
  "ops": [
    {
      "attributes": {
        "color": "windowtext",
        "background": "transparent"
      },
      "insert": "Your text here"
    },
    {
      "attributes": {
        "color": "yellow",
        "background": "transparent"
      },
      "insert": "Your text here"
    }
  ]
}
  1. Load it into the flutter quill

Expected results

Should show correct color or remove color attribute if you don't support it

Actual results

Throw error "Unsupported operation: Color code not supported"

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions