set-selection
editor.apply({
type: 'set_selection',
properties: {
anchor: { path: [0, 0], offset: 0 },
},
newProperties: {
anchor: { path: [0, 0], offset: 15 },
},
})Editor.insertBreak(editor)Editor.range(editor, [])const wholeTranscriptSelection = Editor.range(editor, []);
Transforms.setSelection(editor, wholeTranscriptSelection)Last updated
Was this helpful?