Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-8781

List of classes is hard-coded

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            unknown unknown
            lastorset lastorset
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: