JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 624
  • Score
    100M100P100Q95529F
  • License AGPL-3.0-only

Binding for collaborative editing support in Ace Editor. Connects JSON CRDT str node to Ace Editor.

Package Exports

  • @jsonjoy.com/collaborative-ace
  • @jsonjoy.com/collaborative-ace/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jsonjoy.com/collaborative-ace) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Ace Editor Collaborative Editing Binding

Makes a plain Ace editor instance collaborative by binding it to a JSON CRDT document str node. This allows multiple users to edit the same document json-joy JSON CRDT document concurrently through the Ace editor.

collab-ace-demo

Usage

Installation:

npm install json-joy @jsonjoy.com/collaborative-ace ace-builds

Usage:

import {bind} from '@jsonjoy.com/collaborative-ace';
import {Model} from 'json-joy/lib/json-crdt';

// ...

const unbind = bind(() => str, editor);

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

React

For React usage, see the @jsonjoy.com/collaborative-ace-react package.