-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manually adding hex color in color picker dialog doesn't pre-fill with hashtag #565
Comments
It's not a bug, but sounds like a nice and simple feature request. The reason why it does not add hash aggresively is that this field accepts any valid CSS value, so you could type I'd say that it could adding a missing hash only if the value matches a regexp allowing only chars |
#590 is marged, so we can close this issue as a done. |
@mlewand : This two fixes were needed to resolve this issue. #607 was about changing color/background-color of table cells using color hex representaion without I think it should be added to |
This issue seems to be present in 4.11.4. I can't find an online build of CKEditor 5 that allows you to choose the font color (i.e. using the color picker) to verify if the issue exists in CKEditor 5 or not. |
@brandonfarber Can you post reproduction steps? It looks for me that it works fine with CKEditor 5 doesn't have online builder at the moment. It also doesn't provide color dialog as in CKEditor 4 so this issue will not be present there. |
Upon further testing I do see if you click the "Ok" button the manually typed color code does work and colorizes the selected text, so I guess it's only the "Selected color" field that does not update when the manually supplied color field is blurred when you don't supply a hash tag. Using latest stable Chrome on Windows 10. |
Yes, that's exactly what happens and this issue was to fix the behavior after pressing |
Are you reporting a feature or a bug?
Task
Check if the issue is already reported
None Found
Provide detailed reproduction steps (if any)
Expected result
Since hex colors need to have the preceding hashtag to render properly, if a hashtag isn't entered, I would assume it would automatically be added. The editor seems to display the color without the hashtag (sometimes you have to switch in and out of Source mode to get it to show up, but it does), but as soon as you go to view the text on a web page, the color doesn't display properly because the browser cannot render without the hashtag.
Actual result
No hashtag is added and the browser cannot render the style
Other details
Tested in Ckeditor Demo with same results
The text was updated successfully, but these errors were encountered: