Changes for page Content

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

From version 3.1
edited by Thomas Coelho (local)
on 2023/08/09 10:59
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/15.5]
To 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]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.coelho
1 +xwiki:XWiki.sagunski
Content
... ... @@ -31,8 +31,7 @@
31 31   'name': "$name",
32 32   'rows': 25,
33 33   'cols': 80,
34 - 'full': true,
35 - 'restricted': $editedDocument.isRestricted()
34 + 'full': true
36 36   })
37 37   #else
38 38   </div>
... ... @@ -39,12 +39,9 @@
39 39   #end
40 40   {{/html}}
41 41  #elseif ("$!type" != '')
42 - ## Display the content of the current document without using any sheet. We can't use the include macro here (with the
43 - ## author parameter) because the content may have unsaved changes (e.g. on preview action). We make sure that the HTML
44 - ## macro is not closed unintentionally, even though the XHTML printer protects us against this, just to be extra safe.
45 - {{html}}$services.display.content($tdoc, {
46 - 'displayerHint': 'default'
47 - }).replace('{{/html}}', '&amp;#123;&amp;#123;/html&amp;#125;&amp;#125;'){{/html}}
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('{{', '&amp;#123;&amp;#123;'){{/html}}
48 48  #else
49 49   The display mode is not specified!
50 50  #end
AppWithinMinutes.FormFieldClass[0]
Category
... ... @@ -1,1 +1,0 @@
1 -AppWithinMinutes.Document
Icon
... ... @@ -1,1 +1,0 @@
1 -edit
Priority
... ... @@ -1,1 +1,0 @@
1 -0