How to use the prosemirror-view.EditorView.prototype function in prosemirror-view

To help you get started, we’ve selected a few prosemirror-view 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 ifiokjr / remirror / packages / jest-remirror / src / jsdom-patch.ts View on Github external
(view as any).updateState = function(state: EditorState) {
    warnOnce();
    Cast(state).scrollToSelection = 0;
    EditorView.prototype.updateState.apply(this, [state]);
  };