mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 14:11:35 +02:00
* fix: drag and drop in iframes (#4506) * Create changeset * Update iframe-drop-actions.md
This commit is contained in:
@@ -429,7 +429,7 @@ export const ReactEditor = {
|
||||
|
||||
// Else resolve a range from the caret position where the drop occured.
|
||||
let domRange
|
||||
const { document } = window
|
||||
const { document } = ReactEditor.getWindow(editor)
|
||||
|
||||
// COMPAT: In Firefox, `caretRangeFromPoint` doesn't exist. (2016/07/25)
|
||||
if (document.caretRangeFromPoint) {
|
||||
|
Reference in New Issue
Block a user