Select an image
Choose a format (like image align left)
The drop down closes, and when clicking 'formats' again, the chosen format is not higlighted.
Chosen format should be highlighted, like on https://www.tinymce.com/
Upgrading TinyMCE to the newest version does not help
It works in Integrated 0.4
Find out if it works without the comment script
If yo: make a fix in the comment script
If not: try to find the affecting script
I can't figure out the exact problem. Spent a lot of time changing stuff, but I can't pinpoint the exact problem.
Sometimes it appears as if it works better when you remove these lines:
Sometimes it looks as if it is caused by the css code, I also think updating tinyMce might help a litte, but I don't know how to really fix this.
It doesn't seem te be caused by the comment bundle
I found the problem:
This line is defined in vendor/integrated/content-bundle/Resources/public/sass/components/_tinymce.scss
I think it can be removed, because I don't see a difference when I turn it off (except that the format highlight is back)
I think I misunderstood you, I thought the problem was that the image gets deselected when you change the style. But this indeed seems to fix the issue with the selected style.
this is also fixed now