From 3aebe09606fee141bfabed8d1f9d32836518078b Mon Sep 17 00:00:00 2001 From: Sofien Haj Chedhli Date: Wed, 20 Nov 2024 09:03:06 +0100 Subject: [PATCH] feat: Fix image resizing issue - EXO-74758 - Meeds-io/MIPs#145 (#672) Prior to this change, resizing an inserted image in the editor was not possible. The resizer remained attached to the mouse and only detached when clicking outside the editor. This change addresses the issue by attaching the pointerup event to the document instead of the mouseup event --- .../src/main/webapp/ckeditor/plugins/image2/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-extension-webapp/src/main/webapp/ckeditor/plugins/image2/plugin.js b/commons-extension-webapp/src/main/webapp/ckeditor/plugins/image2/plugin.js index 3a552559be..fcdb641b1a 100644 --- a/commons-extension-webapp/src/main/webapp/ckeditor/plugins/image2/plugin.js +++ b/commons-extension-webapp/src/main/webapp/ckeditor/plugins/image2/plugin.js @@ -1179,7 +1179,7 @@ attachToDocuments( 'mousemove', onMouseMove, listeners ); // Clean up the mousemove listener. Update widget data if valid. - attachToDocuments( 'mouseup', onMouseUp, listeners ); + attachToDocuments( 'pointerup', onMouseUp, listeners ); // The entire editable will have the special cursor while resizing goes on. editable.addClass( cursorClass );