Details
-
New Feature
-
Resolution: Fixed
-
Major
-
10.7
-
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
- blocks
-
CKEDITOR-199 Edit macro content directly in CKEditor when it contains wiki markup
- Closed
-
XWIKI-15801 Allow to specify the content type when creating a macro from the wiki
- Closed
- causes
-
XWIKI-20805 Saving a page with WYSIWYG deletes macros that are inside the content of other macros.
- Closed
-
XRENDERING-668 Attributes starting with data-xwiki- aren't preserved during XHTML parsing
- Closed
- is duplicated by
-
XRENDERING-116 Make macro content typed
- Closed
- is related to
-
XRENDERING-519 The macro parameter descriptor should specify if the parameter can be edited inline
- Closed