Fix spelling corrections not working in RTE
What does this MR do and why?
Fix spelling corrections not working in RTE
The cause
In the rich text editor, we use a custom selection plugin to show what text is selected. This is necessary so that selected text is visible even when the rich text editor is not in focus, for cases like adding a link to selected text.
However, right clicking a misspelled word would also trigger a selection. The browser would show spelling suggestions for the word, but due to the custom selection extension, that misspelled word has already been replaced with a to colour it in a selection colour.
This MR fixes it by preventing a selection from being triggered when you right click a word.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
previously | Screen Recording 2023-10-11 at 11.24.19.mov |
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #419432 (closed)