edi

edit

wraps codemirror into a high-level API that you can require() and insert into a page as a standlone editor, easily

Showing:

Popularity

Downloads/wk

26

GitHub Stars

15

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

4

License

BSD-2-Clause

Type Definitions

Tree-Shakeable

No?

Categories

Readme

edit

wraps codemirror into a high-level API that you can require() and insert into a page as a standlone editor, easily.

the codemirror stylesheet will automatically get inserted into the page for you when you create a new edit instance.

installation

npm install edit --save

now you can require('edit') and use it in the browser with browserify

usage

this will create a codemirror editor and append it to document.body:

var edit = require('edit')
edit()

you can also pass in codemirror options, including a container option which is where the editor will get appended into:

var edit = require('edit')
var editor = edit({
  container: document.querySelector('.editor'),
  tabSize: 16
})

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial