a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix paste replacing selection and cursor position

+3
+3
components/Blocks/TextBlock/useHandlePaste.ts
··· 361 361 let block = useEditorStates.getState().editorStates[entityID]; 362 362 if (block) { 363 363 let tr = block.editor.tr; 364 + if (block.editor.selection.from && block.editor.selection.to) 365 + tr.delete(block.editor.selection.from, block.editor.selection.to); 364 366 tr.insert(block.editor.selection.from || 0, content.content); 365 367 let newState = block.editor.apply(tr); 366 368 setEditorState(entityID, { ··· 368 370 }); 369 371 } 370 372 if (last && !hasChildren) { 373 + if (block?.editor.selection.from !== undefined) return; 371 374 focusBlock( 372 375 { 373 376 value: entityID,