$setSelection
functionSets the current selection in the active EditorState, marking it dirty and clamping to slot boundaries when applicable.
Sets the current selection in the active EditorState, marking it dirty and clamping to slot boundaries when applicable.