Uploaded image for project: '{RETIRED} CKEditor Integration'
  1. {RETIRED} CKEditor Integration
  2. CKEDITOR-474

The label of a dedicated insert macro toolbar menu entry is ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.64.3
    • 1.64.2
    • None
    • None
    • Unknown

    Description

      Use this advanced editor configuration in the Wiki administration:

      // Declare a new toolbar item for the Floating box Table of Contents.
      config.toolbarMenuItems.floatingBoxToc = {
        command: 'xwiki-macro-insert',
        label: 'Floating Table of Contents',
        data: {
          name: 'box',
          content: '{{toc/}}',
          parameters: {cssClass : "floatinginfobox", title : "Table of Contents"}
        }
      };
      
      // Modify the insert configuration to remove the code macro and to replace the default table of contents macro with the one in a floating box.
      config.toolbarMenus.insert.groups[1] = {id: 'macros', items: ['infoBox', 'successBox', 'warningBox', 'errorBox', 'floatingBoxToc', 'include']};
      

      The label on the toolbar appears as "{label}" instead of "Floating Table of Contents"

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: