Patch Changes
-
#6105
a07df52Thanks @janpaepke! - Stop drops from throwing when the browser resolves the drop position outside of the editor.<Editable>resolved the target range from the drop coordinates viacaretRangeFromPoint, which can land on a DOM node outside of the editor even though the event's target is inside it (e.g. when the page scrolled between the lastdragoverand thedrop); the resulting "Cannot resolve a Slate point from DOM point" error escaped the event handler and the drop was lost. The dropped data now goes to the current selection instead (the end of the document without one), and internally dragged content stays where it is.DOMEditor.findEventRangegained asuppressThrowoption for this and returnsnullwhen the range cannot be resolved. -
#6306
c4c990eThanks @dylans! - Expose the placeholder to assistive technology asaria-placeholderon the editor root while it is shown, and mark the visual placeholderaria-hiddenso it isn't read as content.