一般动作
登录
Wiki:
BROPEN
▼
:
Document Index
»
Space:
AppWithinMinutes
▼
:
Document Index
»
Page:
Content
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
App Within Minutes
»
FormField Class
»
Content
Wiki源代码
Content
在2013-10-01 11:53上被
Administrator
修改
内容
·
评论
(0)
·
附件
(0)
·
记录
·
信息
隐藏行号
1: {{velocity}} 2: #if ($type == 'edit') 3: #set ($className = $object.getxWikiClass().name) 4: #if ($doc.fullName == $className) 5: ## We are editing the class so the content must be read from / written to the template document. 6: #set ($name = 'templateContent') 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) 10: #else 11: ## We are editing an application entry so the content must be read from / written to the current document. 12: #set ($name = 'content') 13: #set ($editedDocument = $tdoc) 14: ## Use the preferred content editor. 15: #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') 16: #end 17: {{html clean="false"}} 18: #if (!$useWysiwygEditor) 19: <div id="xwikieditcontentinner"> 20: ## The tool bar may have an entry to insert an HTML macro. Make sure it doesn't break the HTML macro we are currently in. 21: #set ($toolBar = "#template('simpleedittoolbar.vm')") 22: $!toolBar.replace('{{', '{{') 23: #end 24: ## The "content" id is expected by some JavaScript and CSS code. 25: <textarea id="content" cols="80" rows="25" name="$name">$escapetool.xml($editedDocument.content)</textarea> 26: #if ($useWysiwygEditor) 27: #wysiwyg_editProperty($editedDocument 'content' true) 28: #else 29: </div> 30: #end 31: {{/html}} 32: #elseif ("$!type" != '') 33: ## Include the content of the current document. 34: {{include reference=""/}} 35: #else 36: The display mode is not specified! 37: #end 38: {{/velocity}}
快速链接
首页
新闻动态
FAQ