import TextareaBinding from 'yjs/src/Bindings/TextareaBinding/TextareaBinding.js'TextareaBinding
Extends:
Binding → TextareaBinding
A binding that binds a YText to a dom textarea.
This binding is automatically destroyed when its parent is deleted.
Example:
const textare = document.createElement('textarea')
const type = y.define('textarea', Y.Text)
const binding = new Y.QuillBinding(type, textarea)
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
destroy() |
|
Inherited Summary
| From class Binding | ||
| public |
target: * The target that |
|
| public |
type: YType The Yjs type that is bound to |
|
| public |
destroy() Remove all data observers (both from the type and the target). |
|
Public Constructors
Public Methods
public destroy() source
Remove all data observers (both from the type and the target).
