Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gulf-editor-codemirror

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulf-editor-codemirror

Convenient gulf wrapper for codemirror (uses shareaJS's textOT)

latest
Source
npmnpm
Version
5.0.1
Version published
Maintainers
1
Created
Source

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.

(c) 2015-2016 by Marcel Klehr

GNU Lesser General Public License

Keywords

operational transformation

FAQs

Package last updated on 13 Oct 2016

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