Skip to content

gulf/gulf-editor-codemirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulf-editor-codemirror

Gulf bindings for codemirror

(This version is compatible with gulf v5, only. For gulf v4 see the package gulf-codemirror on npm)

Install

npm install --save gulf-editor-codemirror

Usage

const CodemirrorDocument = require('gulf-editor-codemirror')

var cm = CodeMirror(document.body)
var doc = new CodemirrorDocument({
  editorInstance: cm
})

masterStream.pipe(doc.masterLink()).pipe(masterStream)

API

class CodemirrorDocument({editorInstance:CodeMirror, ...}) extends gulf.EditableDocument

  • editorInstance -- a codemirror instance to be wired up with gulf
  • storageAdapter -- (optional) a gulf storage adapter. Default is gulf.MemoryAdapter
  • ottype -- (optional) the ottype to use. Default is ot-text.

Legal

(c) 2015-2016 by Marcel Klehr

GNU Lesser General Public License

About

gulf bindings for codemirror

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.txt
Unknown
COPYING.LESSER

Stars

Watchers

Forks

Packages

No packages published