1.6.1 • Published 9 months ago

collaborative-input v1.6.1

Weekly downloads
-
License
-
Repository
github
Last release
9 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 {bind} from '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.

1.6.1

9 months ago

1.6.0

9 months ago

1.5.0

11 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.0

11 months ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago