Function simplifySelectionAndMaybeSwitchToCommandMode
- simplifySelectionAndMaybeSwitchToCommandMode(target): boolean
Parameters
- target: {
dispatch: ((transaction) => void);
dom: HTMLElement;
state: EditorState;
}dispatch: ((transaction) => void)
- (transaction): void
Returns void
state: EditorState
Returns boolean
Simplify selection but do not prevent default to allow switching to command mode.