Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering

The macro content descriptor should specify if it can be edited inline


    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.7
    • Fix Version/s: 10.10-rc-1
    • Component/s: Macro
    • Labels:
    • Tests:
      Unit, Integration
    • Difficulty:
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:


      In order for the WYSIWYG editor to allow the user to edit the macro content directly inside the editing area 2 conditions must be met:

      • the macro content needs to support wiki syntax
      • the macro should not perform any transformation on the macro content (otherwise the user would edit the output of those transformations)

      The first option is to add a boolean field to the macro content descriptor to specify whether inline editing is allowed.

      Another option, which is more interesting is to allow the macro descriptor to specify a list of editable areas from the macro output and their mapping to macro content and parameters. For instance, suppose there is a macro with one parameter named "title" and the content. This macro outputs the title followed by the content, both with some chrome / styling around them. Ideally the user should be able to edit the title and the content directly inside the editing area without being able to change the order or remove one of them. In this case the macro descriptor could specify that there are 2 editable areas, the first one mapped to the title parameter and the second one mapped to the macro content.


          Issue Links



              • Assignee:
                surli Simon Urli
                mflorea Marius Dumitru Florea
              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created: