一般动作
登录
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)
·
记录
·
信息
显示行号
{{velocity}} #if ($type == 'edit') #set ($className = $object.getxWikiClass().name) #if ($doc.fullName == $className) ## We are editing the class so the content must be read from / written to the template document. #set ($name = 'templateContent') #set ($editedDocument = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template")) ## Don't load the WYSIWYG editor when editing the class, because it's too heavy. #set ($useWysiwygEditor = false) #else ## We are editing an application entry so the content must be read from / written to the current document. #set ($name = 'content') #set ($editedDocument = $tdoc) ## Use the preferred content editor. #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') #end {{html clean="false"}} #if (!$useWysiwygEditor) <div id="xwikieditcontentinner"> ## 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. #set ($toolBar = "#template('simpleedittoolbar.vm')") $!toolBar.replace('{{', '{{') #end ## The "content" id is expected by some JavaScript and CSS code. <textarea id="content" cols="80" rows="25" name="$name">$escapetool.xml($editedDocument.content)</textarea> #if ($useWysiwygEditor) #wysiwyg_editProperty($editedDocument 'content' true) #else </div> #end {{/html}} #elseif ("$!type" != '') ## Include the content of the current document. {{include reference=""/}} #else The display mode is not specified! #end {{/velocity}}
快速链接
首页
新闻动态
FAQ