Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
18.10.0
-
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
- relates to
-
XWIKI-24905 Empty {{wikimacrocontent/}} fails to render/edit
-
- Open
-
-
XRENDERING-827 The box and message macros give no box when inserted with no content
-
- Open
-
-
XWIKI-24152 Add a placeholder to the Box Macro
-
- Open
-
-
XWIKI-25569 Put the cursor in the macro content after inserting a macro whose content is edited in place
-
- Open
-