bindings/prosemirror

Classes

ProsemirrorBinding

Members

static, constant absolutePositionToRelativePosition

Transforms a Prosemirror based absolute position to a Yjs based relative position.

static, constant createNodeIfNotExists

static, constant cursorPlugin

A prosemirror plugin that listens to awareness information on Yjs. This requires that a prosemirrorPlugin is also bound to the prosemirror.

static, constant cursorPluginKey

The unique prosemirror plugin key for cursorPlugin.type

static, constant prosemirrorPlugin

This plugin listens to changes in prosemirror view and keeps yXmlState and view in sync.

This plugin also keeps references to the type and the shared document so other plugins can access it.

static, constant prosemirrorPluginKey

The unique prosemirror plugin key for prosemirrorPlugin.

static, constant relativePositionToAbsolutePosition

Methods

inner matchNodeName(yElement, pNode)

Parameters:
Name Type Description
yElement YXmlElement
pNode any

Prosemirror Node

Type Definitions

ProsemirrorMapping