Changes for page Content
Last modified by Martin Výlet on 19.03.2025 21:26
From version 4.1
edited by Martin Výlet
on 19.03.2025 21:26
on 19.03.2025 21:26
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/17.1.0]
To version 1.1
edited by XWiki Admin
on 26.05.2017 08:18
on 26.05.2017 08:18
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-9.3.1]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. vyl00221 +XWiki.Admin - Content
-
... ... @@ -5,13 +5,15 @@ 5 5 ## We are editing the class so the content must be read from / written to the template document. 6 6 #set ($name = 'templateContent') 7 7 #set ($editedDocument = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template")) 8 + ## Don't load the WYSIWYG editor when editing the class, because it's too heavy. 9 + #set ($useWysiwygEditor = false) 8 8 #else 9 9 ## We are editing an application entry so the content must be read from / written to the current document. 10 10 #set ($name = 'content') 11 11 #set ($editedDocument = $tdoc) 14 + ## Use the preferred content editor. 15 + #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') 12 12 #end 13 - ## Use the preferred content editor. 14 - #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') 15 15 {{html clean="false"}} 16 16 ## The "content" id is expected by some JavaScript and CSS code. 17 17 #set ($id = 'content') ... ... @@ -29,8 +29,7 @@ 29 29 'name': "$name", 30 30 'rows': 25, 31 31 'cols': 80, 32 - 'full': true, 33 - 'restricted': $editedDocument.isRestricted() 34 + 'full': true 34 34 }) 35 35 #else 36 36 </div> ... ... @@ -37,12 +37,8 @@ 37 37 #end 38 38 {{/html}} 39 39 #elseif ("$!type" != '') 40 - ## Display the content of the current document without using any sheet. We can't use the include macro here (with the 41 - ## author parameter) because the content may have unsaved changes (e.g. on preview action). We make sure that the HTML 42 - ## macro is not closed unintentionally, even though the XHTML printer protects us against this, just to be extra safe. 43 - {{html}}$services.display.content($tdoc, { 44 - 'displayerHint': 'default' 45 - }).replace('{{/html}}', '&#123;&#123;/html&#125;&#125;'){{/html}} 41 + ## Include the content of the current document. 42 + {{include reference=""/}} 46 46 #else 47 47 The display mode is not specified! 48 48 #end
- AppWithinMinutes.FormFieldClass[0]
-
- Icon
-
... ... @@ -1,1 +1,1 @@ 1 -edit 1 +icons/silk/page_white_edit.png