1.2.0 • Published 5 months ago

collaborative-input v1.2.0

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

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 collaborative-input

Usage:

import {StrBinding} from 'collaborative-input';

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

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

Preview

See demo.

1.2.0

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago