Changes for page EditSheet

Last modified by teamwire007 on 2026/11/03 07:34

From version 10.1
edited by teamwire004
on 2026/01/13 09:12
Change comment: Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/17.10.2]
To version 12.1
edited by teamwire007
on 2026/11/03 07:34
Change comment: Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/17.10.14]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.teamwire004
1 +XWiki.teamwire007
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