Modifications pour le document EditSheet

Modifié par Florent Charton le 2026/03/13 11:04

Depuis la version 7.1
modifié par Florent Charton
sur 2026/03/13 11:04
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/17.10.4]
À la version 4.1
modifié par Florent Charton
sur 2025/08/19 15:16
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/17.4.3]

Résumé

Détails

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.mode === 'wysiwyg' && editor.document.$ !== document) {
143 + if (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
... ... @@ -179,25 +179,6 @@
179 179  }
180 180  
181 181  /**
182 - * Handle the layout and display of the warning message for headerless tables.
183 - * This message is added by the xwiki-table plugin.
184 - * Some of the default styles are just overridden by the CKEditor reset.
185 - */
186 -.cke_dialog_container span.box.warningmessage {
187 - .alert-warning;
188 - /* Default warning boxes are not meant to be used in a strict layout like the one of this table dialog.
189 - * We need an extra customization to avoid breaking this layout. */
190 - white-space: break-spaces;
191 - /* By default, the warning is not shown. */
192 - display: none;
193 -}
194 -
195 -/* When the value of the previous field is the one we want to avoid, we show the warning. */
196 -.cke_dialog_container tr:has(select [value=""]:checked) + tr span.box.warningmessage {
197 - display: unset;
198 -}
199 -
200 -/**
201 201   * Link Options Toggle
202 202   */
203 203  
... ... @@ -389,15 +389,26 @@
389 389  }
390 390  
391 391  .cke_contents > textarea.cke_source.cke_editable_inline {
373 + border: 1px solid transparent;
374 + border-radius: 0;
392 392   box-shadow: none;
376 + margin-top: -1px;
377 + margin-left: -1px;
378 +
379 + .form-control-focus();
393 393  }
394 394  
382 +.cke_contents.fake {
383 + /* We need this to have the box shadow visible when the source area is focused. */
384 + overflow: visible;
385 +}
386 +
395 395  #xwikicontent + .cke_contents > textarea.cke_source.cke_editable_inline {
396 396   /* Don't take the padding and the margin into account when computing the 100% width. */
397 397   box-sizing: content-box;
398 398   /* Make sure the Source area has the same width as the WYSIWYG area. */
399 - margin-left: -@grid-gutter-width / 2;
400 - margin-right: -@grid-gutter-width / 2;
391 + margin-left: -@grid-gutter-width / 2 - 1px;
392 + margin-right: -@grid-gutter-width / 2 - 1px;
401 401  }
402 402  
403 403  /**