Function simplifySelectionAndMaybeSwitchToCommandMode

  • Simplify selection but do not prevent default to allow switching to command mode.

    Parameters

    • target: {
          dispatch: (transaction: Transaction) => void;
          dom: HTMLElement;
          state: EditorState;
      }

    Returns boolean