Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12230

Style text in TinyMCE should not be added with addIcon method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.9.0
    • 4.9.0
    • None
    • None

      In plugin-cms/resources/js/tinymce/styles.js file, label for styles are added using `editor.ui.registry.addIcon` method. Other methods should probably be used, such as `addMenuItem`
      Currently, this lead to bugs, in particular the fact that the label has a width of 150px despite the whole dropdown is smaller than that. As the structure of display flex is here to handle icons and not text, the dropdown is also not resized according to the length of the label.

            Unassigned Unassigned
            kbourgoin Kepa Bourgoin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: