node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

vue-jade-editor

vue-jade-editor

Build Status

online jade(pug) editor plugin for vue.js

demo & doc

visit http://html5beta.com/apps/vue-jade-editor.html

get

bower install vue-jade-editor

or

npm install vue-jade-editor

features

  • auto indent(backspace enter)
  • indent can be customized
  • auto close for quote, single quote, bracket, left parenthesis
  • smart tab: tab selection or single line
  • untab keyboard shortcuts: ctrl + [
  • tab keyboard shortcuts: ctrl + ] or just tab
  • keyboard shortcuts for i and b
  • content can be modifed by events
  • auto increase textarea height
  • all methods/events extendable

test & build

git clone https://github.com/zxdong262/vue-jade-editor.git
cd vue-jade-editor
npm install
bower install
npm run test
 
#build
gulp build
 

License

MIT