Angular2 - Prosemirror component
This component is initally forked from ng2-codemirror and ported to prosemirror.
Installation
- Install ng2-prosemirror
- NPM :
npm install ng2-prosemirror
- NPM :
Sample
Include ProsemirrorModule
in your main module :
; @
; @ { thiscode = `// Some code...`; // Holding a markdown version of the content } { // Called after every change, not debounced // this.code will not be updated at this time! // You probably use this function to flag the state of your code to "modified" } { // Called after every change, debounced every 1000ms. // this.code is updated now! // You probably use this function to store something and flag the state of your code to "stored" }
Configuration
config
: The configuration object for CodeMirror see http://codemirror.net/doc/manual.html#config
Licence
See LICENSE
file