Function simplifySelectionAndMaybeSwitchToCommandMode

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

    Parameters

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

            • transaction: Transaction

            Returns void

      • dom: HTMLElement
      • state: EditorState

    Returns boolean