Changes for page Content

Last modified by Thomas Coelho (local) on 2023/08/09 10:59

From version 1.1
edited by Laura Sagunski
on 2022/09/27 12:40
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.6]
To version 2.1
edited by Thomas Coelho
on 2023/02/27 13:38
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/15.1]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.sagunski
1 +xwiki:XWiki.thw
Content
... ... @@ -38,9 +38,12 @@
38 38   #end
39 39   {{/html}}
40 40  #elseif ("$!type" != '')
41 - ## Include the content of the current document.
42 - ## Escape {{ in the rendered content to be sure that the HTML macro is not closed unintentionally.
43 - {{html}}$tdoc.getRenderedContent($tdoc.content, $tdoc.syntax.toIdString()).replace('{{', '{{'){{/html}}
41 + ## Display the content of the current document without using any sheet. We can't use the include macro here (with the
42 + ## author parameter) because the content may have unsaved changes (e.g. on preview action). We make sure that the HTML
43 + ## macro is not closed unintentionally, even though the XHTML printer protects us against this, just to be extra safe.
44 + {{html}}$services.display.content($tdoc, {
45 + 'displayerHint': 'default'
46 + }).replace('{{/html}}', '{{/html}}'){{/html}}
44 44  #else
45 45   The display mode is not specified!
46 46  #end
AppWithinMinutes.FormFieldClass[0]
Category
... ... @@ -1,0 +1,1 @@
1 +AppWithinMinutes.Document
Icon
... ... @@ -1,0 +1,1 @@
1 +edit
Priority
... ... @@ -1,0 +1,1 @@
1 +0