quill
quill copied to clipboard
fix: the not hex color doesn't change in toolbar
I found that when actively transmitting color values, only the hex color value will change along with the cursor movement on the toolbar, while other color values will remain in the default state. I found that when getting element attributes, color values are automatically converted to RGB color values. So I did the change below
Added a function to convert existing color values in base.ts.
Added color conversion in toolbar.ts to handle user arguments color.
Delete color and background internal processing.
After processing, all reasonable values that can be placed on the element can be processed