Hello all,
I'm hoping someone can point me in the right direction for this.
I need to create a plugin that will set the font for all the text in a CKEditor instance and have kind of run into a brick wall.
My plan is to only add the font-family style on root level elements, but is there any way to do this in a smooth fashion?
I have looked at extending the rules with a wildcard and check if the parent of the element is body, and if so add the selected font from the font plugin, but how do i then prevent child nodes from also having a font?
Very grateful for any pointers
