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.
  • Loading branch information
SaraBoutej committed Jan 4, 2024
1 parent 23728ee commit f10eee2
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 f10eee2

Please sign in to comment.