Changes for page EditSheet

Last modified by teamwire005 on 2025/05/06 08:20

From version 6.1
edited by teamwire004
on 2025/02/04 08:17
Change comment: Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/16.10.3]
To version 4.1
edited by teamwire004
on 2024/07/12 13:08
Change comment: Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/15.10.10]

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -54,11 +54,9 @@
54 54   }
55 55  
56 56   var uploadDisabled = element.hasAttribute('data-upload-disabled');
57 - var startupFocus = element.hasAttribute('data-startup-focus');
58 58  
59 59   var config = {
60 60   filebrowserUploadUrl: uploadDisabled ? '' : getUploadURL(sourceDocument, 'filebrowser'),
61 - startupFocus,
62 62   height: $(element).height(),
63 63   // Used to resolve and serialize relative references. Also used to make HTTP requests with the right context.
64 64   sourceDocument: sourceDocument,
XWiki.StyleSheetExtension[0]
Code
... ... @@ -448,37 +448,3 @@
448 448   z-index: 9995;
449 449   }
450 450  }
451 -
452 -/*
453 - * Override the CKEditor reset for the table border color.
454 - * The default border color from CKEditor is quite lacking on contrast.
455 - */
456 -.cke_editable.cke_show_borders table.cke_show_border,
457 -.cke_editable.cke_show_borders table.cke_show_border > tr > th,
458 -.cke_editable.cke_show_borders table.cke_show_border > tr > td,
459 -.cke_editable.cke_show_borders table.cke_show_border > thead > tr > th,
460 -.cke_editable.cke_show_borders table.cke_show_border > thead > tr > td,
461 -.cke_editable.cke_show_borders table.cke_show_border > tbody > tr > th,
462 -.cke_editable.cke_show_borders table.cke_show_border > tbody > tr > td,
463 -.cke_editable.cke_show_borders table.cke_show_border > tfoot > tr > th,
464 -.cke_editable.cke_show_borders table.cke_show_border > tfoot > tr > td {
465 - border-color: @table-border-color;
466 - border-style: solid;
467 -}
468 -
469 -/* CKEditor contains a CSS reset. It works with its own style sheets and does not use the ones in XWiki.
470 -However, we want `.sr-only` from XWiki to still be usable in our CKEditor environment.
471 -We need to redefine the XWiki styles of this class to have better priority than the CKEditor CSS reset.
472 -Without this, the elements with this class are still shown which would be different from the behaviour
473 -of `.sr-only` anywhere else in XWiki (as described in our doc).
474 -This redefinition allows for a more consistent behaviour of the `.sr-only` class. */
475 -.cke_reset_all .sr-only {
476 - position: absolute;
477 - width: 1px;
478 - height: 1px;
479 - padding: 0;
480 - margin: -1px;
481 - overflow: hidden;
482 - clip: rect(0, 0, 0, 0);
483 - border: 0;
484 -}