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

Keep the content of a macro editable in place in the WYSIWYG editor when the macro renders an error or nothing

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 18.10.0
    • CKEditor
    • None
    • Unknown

    Description

      The WYSIWYG editor lets the user edit the content of a macro in place only when the rendered output of the macro contains that content, marked as non-generated content. When the macro renders an error, or nothing at all, the editable area disappears with it: the user can no longer type in the macro, and has to open the Edit Macro dialog, or the source, to fix the content.

      This happens to any macro whose content is edited in place, for example:

      • A message macro whose content is emptied in place renders "The required content is missing.", with no area left to type in, see XRENDERING-827.
      • A wiki macro using {{wikimacrocontent/}} with an empty content gives no area to type in, see XWIKI-24905.

      The editor should keep a way to edit the content in place in these cases, for example by showing an editable area for the content next to the error, or in place of the empty output, whenever the macro descriptor declares a content that can be edited in place.

      Found while discussing XRENDERING-827 on the forum, where the need was raised as a generic one, beyond the box and message macros.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: