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

Added Toolbar Button -> selected Text doesn't get included in macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.33
    • 1.32
    • None
    • None
    • Unknown

    Description

      I’ve added some toolbar buttons for the code-macro with specific programming languages preselected. Example Button:

       

       

      config['xwiki-macro'] = config['xwiki-macro'] || {};
      config['xwiki-macro'].insertButtons = [
         {
           commandId: 'xwiki-macro-insert-code-sql',
           macroCall: {
             name: 'code',
             parameters: {
               language: "sql"
             }
           }
         }
       ];
      

       

       

      To reproduce:

      • Add a custom button like mine above to your toolbar
      • Edit a page and select some text
      • Click on the custom added button

      --> The selected text doesn't get prefilled into the code-macro popup window (like it would when you would use the standard "Xwiki macro" button -> "code".

       

      [Link to Forum-Post I made about it|https://forum.xwiki.org/t/adding-editor-toolbar-button-select-marked-text-for-macro/4819].

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            OezDur O.D.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: