Details
-
Improvement
-
Resolution: Obsolete
-
Medium
-
4.1.0
-
None
Description
It appears that the list of available classes in the Online Editor is hard-coded into ezeditor.js or ezmozillaeditor.js. This prevents easy use of custom classes.
From ezeditor.js:996, OE version 4.1.1:
toolbarTags += "<select id='" + this.objectRef + "_select_header' onChange=changeHeading('" + this.objectRef + "')>" + " <option value='normal' selected>"+textStrings["Normal"]+"</option>\n" + " <option value='Heading 1'>"+textStrings["Heading1"]+"</option>" + " <option value='Heading 2'>"+textStrings["Heading2"]+"</option>" + " <option value='Heading 3'>"+textStrings["Heading3"]+"</option>" + " <option value='Heading 4'>"+textStrings["Heading4"]+"</option>" + " <option value='Heading 5'>"+textStrings["Heading5"]+"</option>" + " <option value='Heading 6'>"+textStrings["Heading6"]+"</option>" + " </select>";
I hope that there are plans to enable extending the class list without hacking the JavaScript.
UPDATE: Also issue in OE 5.0.x but need to extend tinyMCE to be able to support classes in selections.