An open API service indexing awesome lists of open source software.

https://github.com/streamich/collaborative-input

Collaboration-enabled HTML text editing elements: <input> and <textarea>
https://github.com/streamich/collaborative-input

Last synced: 11 months ago
JSON representation

Collaboration-enabled HTML text editing elements: <input> and <textarea>

Awesome Lists containing this project

README

          

# Collaborative `` and `` elements

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

## Usage

Installation:

```
npm install json-joy collaborative-input
```

Usage:

```ts
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](https://streamich.github.io/collaborative-input).