Skip to content

Commit bd6f7a8

Browse files
authored
Update handlePastedText.ts (#5093)
1 parent ddf0018 commit bd6f7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/core/editor3/components/handlePastedText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function pasteContentFromOpenEditor(
8888
return 'not-handled';
8989
}
9090

91-
const blocksArray = Array.from<ContentBlock>(internalClipboard);
91+
const blocksArray = Array.from<ContentBlock>(internalClipboard.toList());
9292
const contentState = ContentState.createFromBlockArray(blocksArray);
9393
const editorWithContent = insertContentInState(editorState, contentState, editorFormat);
9494

0 commit comments

Comments
 (0)