Skip to content

Convenient gulf wrapper for textareas and text inputs

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-textarea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulf-editor-textarea

Gulf bindings for textareas and text inputs

  • Compatible with gulf v5 only! (For gulf v4 check out gulf-textarea on npm)

Install

npm install --save gulf-editor-textarea

Usage

const TextareaDocument = require('gulf-editor-textarea')

var textarea = document.querySelecor('textarea#doc')
var doc = new TextareaDocument({
  editorInstance: document.querySelecor('textarea#doc')
})

stream.pipe(doc.masterLink()).pipe(stream)

API

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

  • editorInstance -- a texarea Element or an <input type="text">to be wired up with gulf
  • storageAdapter -- (optional) a gulf storage adapter. Default: gulf.MemoryAdapter
  • ottype -- (optional) the OT type to use. Default: ot-text

Legal

(c) 2015-2016 by Marcel Klehr

GNU Lesser General Public License

About

Convenient gulf wrapper for textareas and text inputs

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.txt
Unknown
COPYING.LESSER

Stars

Watchers

Forks

Packages

No packages published