Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4048

Automatically add empty new line before/after macros when inserting standalone macros

    Details

    • Tests:
      Integration
    • Development Priority:
      High
    • Difficulty:
      Medium
    • Similar issues:

      Description

      Happens when using the wysiwyg to insert a ToC macro.
      If i do not leave a line above the macro, user gets this message :
      "not an inline macro" which is not helpful.
      That warning message will be displayed once the page is saved.

      Not working :

      **Content Table**
      {{toc/}}
      
      == Section A ==
      

      Working :

      **Content Table**
      
      {{toc/}}
      
      == Section A ==
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                barbey St├ęphane Barbey
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: