JSPM

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

Collaborative input and textarea bindings to JSON CRDT

Package Exports

  • @jsonjoy.com/collaborative-input
  • @jsonjoy.com/collaborative-input/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-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Collaborative <input> and <textarea> elements

This package provides bindings for <input> and <textarea> elements to JSON CRDT data structures. It allows multiple users to edit the <input> and <textarea> elements simultaneously.

Usage

Installation:

npm install json-joy @jsonjoy.com/collaborative-input

Usage:

import {bind} from '@jsonjoy.com/collaborative-input';

const str = model.api.str(['path', 'to', 'string']);
const input = document.getElementById('input');
const unbind = bind(str, input);

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

Preview

See demo.