xwikisas / xwiki-pro-macros

XWiki rendering macros useful when migrating content from Confluence
GNU Lesser General Public License v2.1
3 stars 12 forks source link

Adding a view-files macro before a block macro in the rich text editor adds its result as content in the page #305

Open lucaa opened 3 months ago

lucaa commented 3 months ago

How to reproduce:

Expected result:

Actual result

(% class="box errormessage" %) ((( rendering.macro.viewFile.namerequired" )))

{{html}} <a href="/xwiki/bin/download/Sandbox/TestPage1/filename" download="download" class="button button-primary" title="View file content"

filename {{/html}}

{{info}} test {{/info}}


Note: it happens the same if I fill in an actual file in the view-file macro.

Reproduced on Chrome, on XWiki 16.4.1, may be a new issue related to the version of XWiki.
lucaa commented 3 months ago

Note: this reproduces also if I add a view-file macro before another view-file macro.

lucaa commented 3 months ago

tested with Pro macros 1.19.9 on XWiki 16.4.1