Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-518

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

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 10.10-rc-1
    • 10.7
    • Macro
    • None
    • Unit, Integration
    • Unknown
    • Pull Request accepted

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: