Changes for page EditSheet
Last modified by teamwire007 on 2026/11/03 07:34
From version 9.1
edited by teamwire004
on 2025/10/14 07:03
on 2025/10/14 07:03
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/16.10.12]
To version 12.1
edited by teamwire007
on 2026/11/03 07:34
on 2026/11/03 07:34
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/17.10.14]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.teamwire00 41 +XWiki.teamwire007 - Content
-
... ... @@ -1,38 +1,0 @@ 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}}
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -140,7 +140,7 @@ 140 140 // We have to overwrite both appendChild and insertBefore because depending on the presence of the BASE element 141 141 // RequireJS uses one or the other. 142 142 ckeditor.on('instanceReady', ({editor}) => { 143 - if (editor.document.$ !== document) { 143 + if (editor.mode === 'wysiwyg' && editor.document.$ !== document) { 144 144 // This editor instance is using a separate DOM document for editing which means it's a standalone editor. 145 145 const initialHead = editor.document.$.head; 146 146 const originalAppendChild = initialHead.appendChild;
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -33,6 +33,23 @@ 33 33 } 34 34 35 35 /** 36 + * Standalone edit mode: display the document title as a text input (while preserving the heading styles) in order to 37 + * emphasize that the title can be changed. The in-place edit mode keeps the borderless title in order to avoid text 38 + * flickering when entering or leaving the edit mode. 39 + */ 40 +#editMeta #document-title h1.editable { 41 + /* The title input is aligned with the edited content, like the other form fields. */ 42 + margin-left: 0; 43 + 44 + & > input[name="title"] { 45 + border: 1px solid @input-border; 46 + border-radius: @input-border-radius; 47 + .box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075)); 48 + .form-control-focus(); 49 + } 50 +} 51 + 52 +/** 36 36 * Full-screen styles (for the standalone / classic editor). 37 37 */ 38 38 ... ... @@ -179,6 +179,25 @@ 179 179 } 180 180 181 181 /** 199 + * Handle the layout and display of the warning message for headerless tables. 200 + * This message is added by the xwiki-table plugin. 201 + * Some of the default styles are just overridden by the CKEditor reset. 202 + */ 203 +.cke_dialog_container span.box.warningmessage { 204 + .alert-warning; 205 + /* Default warning boxes are not meant to be used in a strict layout like the one of this table dialog. 206 + * We need an extra customization to avoid breaking this layout. */ 207 + white-space: break-spaces; 208 + /* By default, the warning is not shown. */ 209 + display: none; 210 +} 211 + 212 +/* When the value of the previous field is the one we want to avoid, we show the warning. */ 213 +.cke_dialog_container tr:has(select [value=""]:checked) + tr span.box.warningmessage { 214 + display: unset; 215 +} 216 + 217 +/** 182 182 * Link Options Toggle 183 183 */ 184 184 ... ... @@ -211,8 +211,6 @@ 211 211 a.cke_button.cke_button__xwiki-macro-edit > span.cke_button_icon.cke_button__xwiki-macro-edit_icon, 212 212 a.cke_button.cke_button__xwiki-link-open > span.cke_button_icon.cke_button__xwiki-link-open_icon, 213 213 a.cke_button.cke_button__insert > span.cke_button_icon.cke_button__insert_icon { 214 - /* This is needed for XWiki versions older than 7.1M1 where we overwrite the icons path (see above). */ 215 - background-image: none !important; 216 216 font-family: 'Glyphicons Halflings'; 217 217 position: relative; 218 218 top: 1px; ... ... @@ -319,7 +319,7 @@ 319 319 max-width: 64px; 320 320 vertical-align: text-top; 321 321 } 322 -/* The image still takes some space in IE11even if there's no source specified. Let's make sure it's hidden.356 +/* The image still takes some space in all browsers even if there's no source specified. Let's make sure it's hidden. 323 323 See CKEDITOR-389: Missing space in the suggestions that appear while using the autocomplete function on IE 11 */ 324 324 .ckeditor-autocomplete-item-preview-wrapper img[src=""], 325 325 .ckeditor-autocomplete-item-icon-wrapper img[src=""] {