Wiki source code of EditSheet
Last modified by teamwire005 on 2025/05/06 08:20
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{include reference="CKEditor.VelocityMacros"/}} | ||
2 | |||
3 | {{velocity}} | ||
4 | #if ($doc.fullName == 'CKEditor.EditSheet') | ||
5 | This is a sheet for editing the document content using [[CKEditor>>http://ckeditor.com/]]. | ||
6 | #else | ||
7 | {{html clean="false"}} | ||
8 | ## Include the auto-save styles. | ||
9 | #set ($discard = $xwiki.ssfx.use('js/xwiki/editors/autosave.css', true)) | ||
10 | #if ("$!request.section" != '') | ||
11 | <div class="hidden"> | ||
12 | <input type="hidden" name="section" value="$!escapetool.xml($request.section)"/> | ||
13 | </div> | ||
14 | #end | ||
15 | <div class="row"> | ||
16 | <div class="cke-editMeta col-xs-12 col-md-7"> | ||
17 | ## Add support for editing the page title (which is not available by default in Inline Form edit mode). | ||
18 | #set ($editor = 'wiki') | ||
19 | #template('editmeta.vm') | ||
20 | #set ($editor = 'inline') | ||
21 | </div> | ||
22 | </div> | ||
23 | ## The xwikieditcontent id is needed for the auto-save feature. | ||
24 | <div id="xwikieditcontent" data-autosave="true"> | ||
25 | #set ($parameters = { | ||
26 | 'content': $tdoc.content, | ||
27 | 'attributes': { | ||
28 | 'id': 'content', | ||
29 | 'name': 'content', | ||
30 | 'rows': 25, | ||
31 | 'cols': 80 | ||
32 | } | ||
33 | }) | ||
34 | #ckeditor($parameters) | ||
35 | </div> | ||
36 | {{/html}} | ||
37 | #end | ||
38 | {{/velocity}} |