1.2.0 • Published 8 years ago

cledit v1.2.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
8 years ago

cledit

Build Status NPM version

Classeur ContentEditable engine

This library is the module powering Classeur's file editor. It's based on StackEdit's editor module, which is itself based on the editor implemented in Dabblet.

The main purpose is to have a lightweight layer on top of a built-in contenteditable text field, to provide the following features:

  • Syntax highlighting
  • Selection getter, setter, change listener, cursor coordinates...
  • Custom undo/redo behaviors
  • Custom keystrokes

The benefits over ACE/CodeMirror are:

  • Pluggable syntax highlighting (works beautifully with Prism.js)
  • Browser built-in spellchecking
  • Mobile device support

cledit relies on browsers built-in MutationObserver API. IE11+ is required.
cledit uses Google's DiffMatchPatch library as a dependency.

Install

npm install cledit --save

Use

A usage example can be found in the demo folder.

License

Apache

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago