you can use the dataprocessor ckeditor to change (for example) paragraphs of your choice for the font size, font family, this will affect any paragraph entered in ckeditor if it is inserted, written or modified in the source; something like that:
CKEDITOR.on('instanceReady', function( ev ) { ev.editor.dataProcessor.htmlFilter.addRules({ elements: { p: function (e) { e.attributes.style = 'font-size:' + fontsizevariable + 'px; font-family:' + fontfamilyvariable + ';'; } } }); });
same for dataProcessor.dataFilter
But if you intend to view html created outside of your environment, these rules can make it a real mess.
source share