From 02e5b7991a9cf96242d796fe314002b9ca029d1c Mon Sep 17 00:00:00 2001 From: saraBoutej Date: Fri, 22 Dec 2023 16:44:52 +0100 Subject: [PATCH] feat: Fix error when selecting text and make it bold - MEED-3074- Meeds-io/MIPs#107 --- .../src/main/webapp/ckeditor/plugins/balloonpanel/plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commons-extension-webapp/src/main/webapp/ckeditor/plugins/balloonpanel/plugin.js b/commons-extension-webapp/src/main/webapp/ckeditor/plugins/balloonpanel/plugin.js index 957b70eed0..2d3083d256 100644 --- a/commons-extension-webapp/src/main/webapp/ckeditor/plugins/balloonpanel/plugin.js +++ b/commons-extension-webapp/src/main/webapp/ckeditor/plugins/balloonpanel/plugin.js @@ -418,6 +418,7 @@ return item.getClientRects( true )[ 0 ]; } ); } else { + elementOrSelection.selectRanges([ranges[ ranges.length - 1 ]]); rectList = ranges[ ranges.length - 1 ].getClientRects( true ); }