Skip to content

Commit

Permalink
feat: Fix error when selecting text and make it bold - MEED-3074- Mee…
Browse files Browse the repository at this point in the history
…ds-io/MIPs#107 (#568)

This changes allows to fix the js console error when selecting a text and make it bold/italic using the CKeditor balloon toolbar.

(cherry picked from commit 0f6a1a3)
  • Loading branch information
SaraBoutej committed Jan 4, 2024
1 parent 6ff6e3d commit fb8e567
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
return item.getClientRects( true )[ 0 ];
} );
} else {
elementOrSelection.selectRanges([ranges[ ranges.length - 1 ]]);
rectList = ranges[ ranges.length - 1 ].getClientRects( true );
}

Expand Down

0 comments on commit fb8e567

Please sign in to comment.