#elseif ($type == 'hidden')
#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"}}
<input type="hidden" id="$id" name="$name" value="$!escapetool.xml($editedDocument.content)"/>
{{/html}}