Styles mapping for deprecated / system colors #3112
Labels
core
The issue is caused by the editor core code.
status:confirmed
An issue confirmed by the development team.
type:feature
A feature request.
Type of report
Feature request
Provide description of the new feature
Currently, system colors are not correctly recognized by
CKEDITOR.tools.style.parse
functions (#2923). As the colors may introduce some issues with different color among the systems where we expect the concrete one, it makes sense to create some public mapping which will convert styles to the expected. It should also allow to disable or change a mapping by the developer if needed.Some poor mapping has been already introduced for
Border
style type (#2924) wherewindowtext
is mapped intoblack
color. We should extract this logic into separate namespace insideCKEDITOR.tools.style
.Note that this mapping is not limited to colors, we may need some other style mappings in the future, so the general method shouldn't limit itself to the concrete style property.
The text was updated successfully, but these errors were encountered: