collaborative-editor
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

Package Sidebar

Install

npm i collaborative-editor

Weekly Downloads

38

Version

2.1.0

License

none

Unpacked Size

39.8 kB

Total Files

26

Last publish

Collaborators

  • streamich