Opened 15 years ago
Last modified 8 years ago
#5597 confirmed Bug
Better validation in the colorbutton plugin
Reported by: | Wiktor Walc | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description
When someone copies a hex value for a custom color without initial hash character (e.g. cc31e2
) and then use it as a custom color, CKEditor will ignore this color and insert an empty <span> tag.
Confirmed in IE8 and FF 3.6.
<p> Sample <span>foo</span> bar.</p>
Steps to reproduce
- Select some text
- Press "Text Color" button
- Press "More Color"
- in the right corner paste
cc31e2
and press "Ok"
When creating a patch, remember that color names like "red" should be allowed, as well as rgb (even rgba?)