Home Reference Source
public class | source

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

Inherited Summary

From class Binding
public

target: *

The target that type is bound to.

public

type: YType

The Yjs type that is bound to target

public

Remove all data observers (both from the type and the target).

Public Constructors

public constructor() source

Override:

Binding#constructor

Public Methods

public destroy() source

Remove all data observers (both from the type and the target).

Override:

Binding#destroy