UNPKG

@skokenes/slate-yjs

Version:
9 lines (8 loc) 215 B
import { Editor } from 'slate'; import * as Y from 'yjs'; /** * Applies a Yjs Text event to a slate editor. * * @param event */ export default function applyTextEvent(editor: Editor, event: Y.YTextEvent): void;