CKEditor Custom Styles - How to apply multiple classes to the same element
Permalink
Hi All,
I have two custom styles set up in my page_theme.php, as follows:
Which work great when applied individually. However, I need to apply BOTH of those classes to the SAME img element. This currently does not work. When "Image Full Width" is applied and then I apply "Image Border Bottom" the original class is overwritten and only the latest one is applied.
I have read through this documentation by the great MrKDilkington:https://documentation.concrete5.org/tutorials/adding-ckeditor-custom... and unless I'm missing something in there, I don't believe it mentions how to accomplish what I'm going for here.
The situation is a bit more broad than this as well, I would like the "Image Border Bottom" class to be able to be paired with about 4 other similar img element styles I have set up.
Any help would be greatly appreciated. Thanks.
I have two custom styles set up in my page_theme.php, as follows:
Which work great when applied individually. However, I need to apply BOTH of those classes to the SAME img element. This currently does not work. When "Image Full Width" is applied and then I apply "Image Border Bottom" the original class is overwritten and only the latest one is applied.
I have read through this documentation by the great MrKDilkington:https://documentation.concrete5.org/tutorials/adding-ckeditor-custom... and unless I'm missing something in there, I don't believe it mentions how to accomplish what I'm going for here.
The situation is a bit more broad than this as well, I would like the "Image Border Bottom" class to be able to be paired with about 4 other similar img element styles I have set up.
Any help would be greatly appreciated. Thanks.
In the meantime, you can do something like this
Not ideal depending on your use case but it works.