Branch: refs/heads/stable-17.0.x
Home:
https://github.com/xwiki/xwiki-platform
Commit: 33efc2f73a4990acf9ab045b4c6b378910b9ed53
https://github.com/xwiki/xwiki-platform/commit/33efc2f73a4990acf9ab045b4c6b…
Author: Marius Dumitru Florea <marius(a)xwiki.com>
Date: 2025-01-25 (Sat, 25 Jan 2025)
Changed paths:
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-macro/plugin.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-realtime/ckeditorRealtimeAdapter.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-realtime/plugin.js
A
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-selection/diffWorker.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-selection/plugin.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-source/plugin.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/javascript/testUtils.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/javascript/xwiki-selection.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/javascript/xwiki-source.js
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/resources/jasmine-require-config.txt
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/Translations.xml
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/src/main/webjar/editor.js
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/src/main/webjar/patches.js
Log Message:
-----------
XWIKI-21224: Performance issue when clicking the view source button in the WYSIWYG
editor
* Move the diff computation in a Web Worker (shared by all CKEditor instances on the same
page)
* Update the code to take into account that restoring the selection is now an asynchronous
process.
* Show a progress notification message after 1s that can be used to abort the selection
restore
* Use a simple fake progress based on an exponential function that goes towards 100% but
never reaches it
* Fix jasmine tests
Commit: a8fcc8dd5c4a567f4b6096d5bf2cc980c5247f1b
https://github.com/xwiki/xwiki-platform/commit/a8fcc8dd5c4a567f4b6096d5bf2c…
Author: Marius Dumitru Florea <marius(a)xwiki.com>
Date: 2025-01-25 (Sat, 25 Jan 2025)
Changed paths:
M
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-selection/plugin.js
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/src/main/webjar/wysiwygEditor.js
Log Message:
-----------
XWIKI-21224: Performance issue when click the view source button in the WYSIWYG editor
* Pause the realtime synchronization while the selection is being restored (asynchronously
in a Web Worker)
* If the visible content changes (e.g. mouse hover activates some CSS rules that toggle
the visibiity of some part of the content, such as the image resize handles) while the
selection is being restored (i.e. while the Web Worker computes the diff) we need to redo
the transformation (i.e. redo the diff, until the the content remains unchanged).
Compare:
https://github.com/xwiki/xwiki-platform/compare/9340ede5dc99...a8fcc8dd5c4a
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications