Skip to content

Convenient gulf wrapper for contenteditable elements

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.txt
Unknown
COPYING.LESSER
Notifications You must be signed in to change notification settings

gulf/gulf-editor-contenteditable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Legal

(c) 2015 by Marcel Klehr

GNU Lesser General Public License

About

Convenient gulf wrapper for contenteditable elements

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.txt
Unknown
COPYING.LESSER

Stars

Watchers

Forks

Packages

No packages published