@wangeditor-next/yjs
Version:
Yjs binding for wangeditor-next.
7 lines (6 loc) • 804 B
TypeScript
import { CursorEditor, withCursors, withYHistory, withYjs, YHistoryEditor, YjsEditor } from './plugins';
import { slateNodesToInsertDelta, yTextToSlateElement } from './utils/convert';
import { relativePositionToSlatePoint, relativeRangeToSlateRange, slatePointToRelativePosition, slateRangeToRelativeRange } from './utils/position';
export { CursorEditor, relativePositionToSlatePoint, relativeRangeToSlateRange, slateNodesToInsertDelta, slatePointToRelativePosition, slateRangeToRelativeRange, withCursors, withYHistory, withYjs, YHistoryEditor, YjsEditor, yTextToSlateElement, };
export type { RelativeRange } from './module/custom-types';
export type { CursorState, CursorStateChangeEvent, RemoteCursorChangeEventListener, WithCursorsOptions, WithYHistoryOptions, WithYjsOptions, } from './plugins';