diff --git a/packages/core/src/PasteRule.ts b/packages/core/src/PasteRule.ts index a0969673476..574e9d61578 100644 --- a/packages/core/src/PasteRule.ts +++ b/packages/core/src/PasteRule.ts @@ -277,6 +277,7 @@ export function pasteRulesPlugin(props: { editor: Editor; rules: PasteRule[] }): if (isSimulatedPaste) { const { from, text } = simulatedPasteMeta const to = from + text.length + // const to = from + (typeof text === 'string' ? text.length : text.size) const pasteEvt = createClipboardPasteEvent(text) return processEvent({