How to use the prosemirror-history.redo function in prosemirror-history

To help you get started, we’ve selected a few prosemirror-history examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github guardian / prosemirror-noting / test / helpers / prosemirror.js View on Github external
redo(n = 1) {
    for (let i = 0; i < n; i += 1) {
      redo(this.state, tr => this.apply(tr));
    }
    return this;
  }
github ProseMirror / website / example / footnote / index.js View on Github external
          "Mod-y": () => redo(this.outerView.state, this.outerView.dispatch)
        })]
github taktik / icure-backend / web / icure-ht / app / src / elements / prose-editor / prose-editor / prose-editor.ts View on Github external
doRedo(e: CustomEvent) {
    e.stopPropagation()
    e.preventDefault()
    if (this.editorView) {
      redo(this.editorView.state, this.editorView.dispatch)
      this.editorView.focus()
    }
  }
github zodiac-team / zodiac-ui / libs / editor / src / plugins / code / code.nodeview.ts View on Github external
            [`Shift-${mod}-Z`]: () => redo(view.state, view.dispatch),
            [`${mod}-Y`]: () => redo(view.state, view.dispatch),
github chanzuckerberg / czi-prosemirror / src / HistoryRedoCommand.js View on Github external
execute = (
    state: EditorState,
    dispatch: ?(tr: Transform) => void,
    view: ?EditorView
  ): boolean => {
    return redo(state, dispatch);
  };
}
github nib-edit / Nib / packages / core / src / plugins / history / keymaps.js View on Github external
  "Mod-Shift-z": (state, dispatch) => redo(state, dispatch),
  "Mod-z": (state, dispatch) => undo(state, dispatch)
github ProseMirror / prosemirror-menu / src / menu.js View on Github external
  enable: state => redo(state),
  icon: icons.redo
github ProseMirror / website / example / codemirror / index.js View on Github external
      [`${mod}-Y`]: () => redo(view.state, view.dispatch),
      "Ctrl-Enter": () => {
github nib-edit / Nib / packages / core / src / plugins / history / ToolbarComponent.js View on Github external
redo = () => {
    const { pmstate } = this.props;
    const { state, dispatch } = pmstate.pmview;
    redo(state, dispatch);
  };

prosemirror-history

Undo history for ProseMirror

MIT
Latest version published 1 month ago

Package Health Score

74 / 100
Full package analysis

Similar packages