Details
-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
10.6
-
None
-
Unknown
-
Description
Take the following example:
before {{include reference="Some.Page"/}} after
We can use the Include Macro inline because it supports inline mode but it can also generate block level content depending on the content of the included page. The rendering should make sure the generated HTML is valid otherwise we break the WYSIWYG editor.
Another example is:
before {{info}} one two {{/info}} after
In this case the Info Macro supports inline mode but has block level content. I agree that writing this directly in the Wiki Editor doesn't make much sense but the WYSIWYG editor has no idea whether the inserted macro produces block level content until it actually executes the macro. And it doesn't execute the macro alone. It has to render the entire page, otherwise the output of the macro could be different. And the output of the rendering is invalid HTML which breaks the editor.
Attachments
Issue Links
- blocks
-
XWIKI-13997 Page/editor corruption caused by inlined display/include macro that references block content
- Open
-
XWIKI-20192 Display macro added twice copy content of the entity in the current page
- Closed
- relates to
-
XRENDERING-662 Include macro displays the included content in addition to the macro block when preceded by simple text without empty line
- Closed
-
XRENDERING-745 Impossible to save page with specific source code in CKEditor or WYSIWYG editor
- Closed
-
XWIKI-21125 Include and Display macros should generate inline content when used in an inline context
- Closed