Changes for page CKEditor Integration

Last modified by Admin on 2024/03/27 14:14

<
From version < 38.1 >
edited by Marius Dumitru Florea
on 2016/05/03 17:36
To version < 39.1 >
edited by Marius Dumitru Florea
on 2016/05/03 17:38
>
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -67,37 +67,6 @@
67 67  
68 68  When you [[create a page>>platform:Features.DocumentLifecycle||anchor="HCreate"]] using the "Blank page" (or "Empty wiki page") type (template) you are redirected to the edit mode for that page. In order to use the CKEditor in this case, instead of the default WYSIWYG editor, you need to [[import>>platform:Features.Imports||anchor="HImportingXWikipages"]] the attach:application-ckeditor-blank-page.xar file.
69 69  
70 -== Auto Save ==
71 -
72 -You can activate the [[auto-save>>platform:Features.PageEditing||anchor="HAutosave"]] feature (that is available by default in wiki edit mode) following this steps:
73 -
74 -* Edit the ##CKEditor.EditSheet## page in wiki edit mode
75 -** Look for the line that includes the ##finder.min.css## and add(((
76 -{{code language="none"}}
77 -## Include auto-save styles.
78 -#set ($discard = $xwiki.ssfx.use('js/xwiki/editors/autosave.css', true))
79 -{{/code}}
80 -)))
81 -** Look for the ##<div>## that wraps the content textarea and replace it with(((
82 -{{code language="html"}}
83 -<div id="xwikieditcontent">
84 -{{/code}}
85 -)))
86 -** Save
87 -* Edit the ##CKEditor.EditSheet## page in object edit mode
88 -** Expand the first ##JavaScriptExtension## object ('CKEditor Loader')
89 -** Add to the require config paths(((
90 -{{code language="js"}}
91 -'autosave': "$xwiki.getSkinFile('js/xwiki/editors/autosave', true)"
92 -{{/code}}
93 -)))
94 -** Add 'autosave' to the list of ##ckeditor## module dependencies(((
95 -{{code language="js"}}
96 -deps: ['jquery', 'resource', 'resourcePicker', 'autosave']
97 -{{/code}}
98 -)))
99 -** Save
100 -
101 101  = Future =
102 102  
103 103  The following is not yet supported but we plan to implement in the future:

Get Connected