🐛 Bug Fix
- Safari, editor inside a shadow root: Backspace deleted the character but the caret vanished, and the next Backspace threw
HierarchyRequestError: The operation would yield an incorrect node tree.. By specificationSelection.addRange()ignores a range whose root is not the document, which is every range inside a shadow tree; Chrome takes them through its non-standardShadowRoot.getSelection(), but Safari only has the window selection, soremoveAllRanges()followed by the ignoredaddRange()left no selection at all. When the browser's own selection is empty afteraddRange(), the range is now applied withsetBaseAndExtent(), which does accept nodes inside a shadow tree. Follow-up to 4.17.2. Reported by Ralf Pichler (Jodit OEM). - Chrome and Edge: selecting the URL in the link editing popup by dragging the mouse and releasing it just outside the popup closed the popup together with the inline toolbar. Chrome reports a drag that starts in one element and ends in another as a
clickon their common ancestor, and theselectplugin took that click on the page body for a click outside the editor and firedoutsideClick. A click whose press started inside a popup no longer counts as one. Reported by Ralf Pichler (Jodit OEM).