Branch: refs/heads/stable-16.10.x
Home:
https://github.com/xwiki/xwiki-platform
Commit: c21bd992f816126e4d47c51e4ca5cfb8d37402e4
https://github.com/xwiki/xwiki-platform/commit/c21bd992f816126e4d47c51e4ca5…
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
(cherry picked from commit 33efc2f73a4990acf9ab045b4c6b378910b9ed53)
Commit: 6e91c87454c023ff6f40530ec2209ff4f124cc92
https://github.com/xwiki/xwiki-platform/commit/6e91c87454c023ff6f40530ec220…
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).
(cherry picked from commit a8fcc8dd5c4a567f4b6096d5bf2cc980c5247f1b)
Compare:
https://github.com/xwiki/xwiki-platform/compare/b71e6d245876...6e91c87454c0
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications