Changes for page EditSheet

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

From version 5.1
edited by teamwire005
on 2024/10/01 09:14
Change comment: Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/15.10.12]
To 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]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.teamwire005
1 +XWiki.teamwire004
XWiki.JavaScriptExtension[0]
Code
... ... @@ -54,9 +54,11 @@
54 54   }
55 55  
56 56   var uploadDisabled = element.hasAttribute('data-upload-disabled');
57 + var startupFocus = element.hasAttribute('data-startup-focus');
57 57  
58 58   var config = {
59 59   filebrowserUploadUrl: uploadDisabled ? '' : getUploadURL(sourceDocument, 'filebrowser'),
61 + startupFocus,
60 60   height: $(element).height(),
61 61   // Used to resolve and serialize relative references. Also used to make HTTP requests with the right context.
62 62   sourceDocument: sourceDocument,
XWiki.StyleSheetExtension[0]
Code
... ... @@ -465,3 +465,20 @@
465 465   border-color: @table-border-color;
466 466   border-style: solid;
467 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 +}