-
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
Color button does not highlight active color when colorButton_foreStyle
with class used
#3999
Comments
i guess i have the same issue in an typo3 v10 installation right now. For Example if i have a class
Then i get in my code sdfdsgdflgdf but it is not shown as red and also the colorbutton is not indicating a red setting. But the information is successfully stored but just not visible in the editor - except of you check the generated source. Are there any news to this problem or any workarround? I could use |
oh wow ... just realized, but nevertheless the editor itself does recognize those set color changes and even shows you which color was set, but you cant remove or change them with the editors ui. only way is to switch to source code vision and change it there. if your try to change the color it just adds another wrapping span outside so that it have no effect as the previous setting is still the primary. changing to automatic/default color has no effect to code or vision. |
@chrisi51 have you found a solution for the problem? it seems that 'attributes' is completely ignored and so applying "named Colors" via css classes is broken i am not sure if this is a typo3-specific issue (like the YAML config does not allow for 'attributes') or if this a problem in CKeditor in general. |
@chrisi51 fyi ... just found the solution |
@f1ames time passed by and the problem got shifted and then forgotten xD will have to check this later ... thx for your comments |
Type of report
Bug
Provide detailed reproduction steps (if any)
See this codepen for easy reproduction.
colorButton_foreStyle
to use class instead of styles:Expected result
Previously applied color is highlighted in a panel.
Actual result
Automatic applied color is highlighted in a panel.
Other details
Works with
4.11.4
(see codepen), broken in4.12.0
(due to changes in #1478 - see codepen). Since we are introducingcolorName
back (see #3940), it should be also covered there to work as before.It's quite complicated because
4.12.0
changed the behavior ofcolor
incolorButton_foreStyle
configuration so you are not able to use it reasonably withattributes: { 'class': '#(color)' }
(as it always contains#
and will produce invalid class names). We may assume this was intentional due to those changes in #1478 but I will treat it as a bug (and regression), since it looks more like a side effect which we didn't full predicted.colorbutton
The text was updated successfully, but these errors were encountered: