🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

gulf-editor-contenteditable

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulf-editor-contenteditable

Convenient gulf wrapper for contenteditable elements (uses dom-ot)

latest
Source
npmnpm
Version
5.0.3
Version published
Maintainers
1
Created
Source

gulf-editor-contenteditable

Gulf bindings for contenteditable elements

(This version is compatible with gulf v5 only. For a gulf v4 compatible package check out gulf-contenteditable on npm.)

Install

npm install --save gulf-editor-contenteditable

Usage

const ContenteditableDocument = require('gulf-editor-contenteditable')

var doc = new ContenteditableDocument({
  editorInstance: document.querySelecor('#doc[contenteditable]')
})

API

class ContenteditableDocument({editorInstance:HTMLElement,...}) extends gulf.EditableDocument

  • editorInstance -- a contenteditable Element to be wired up with gulf
  • storageAdapter -- (optional) a gulf storage adapter. Default is gulf.MemoryAdapter
  • ottype -- (optional) the OT type to use. With this binding the default is dom-ot

(c) 2015 by Marcel Klehr

GNU Lesser General Public License

Keywords

operational transformation

FAQs

Package last updated on 16 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts