2.1.0 • Published 5 months ago

collaborative-editor v2.1.0

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

Collaborative plain text editor binding

This package provides bindings a generic implementation for binding any plain text editor to a JSON CRDT string.

Usage

Installation:

npm install json-joy collaborative-editor

Usage:

import {StrBinding, EditorFacade} from 'collaborative-editor';

const editor: EditorFacade = {
  // ...
};

const str = model.api.str(['path', 'to', 'string']);
const binding = new StrBinding(str, editor);
binding.bind();

// When done, unbind the binding.
binding.unbind();

Preview