Skip to content
forked from jkso/wysiwyg.js

wysiwyg contenteditable editor (minified+compression: 6kb)

License

Notifications You must be signed in to change notification settings

alitan/wysiwyg.js

 
 

Repository files navigation

Changes in Version 3:

  • Dropped jQuery dependency
  • CSS3 transitions if possible
  • Dropped support for IE 6-8, Safari 3.1-5
  • Improved suggestions, e.g. '@username'
  • Simplified button API
  • New markup, see example:

http://wysiwygjs.github.io/

Markup

<div class="wysiwyg">
  <textarea name="name" placeholder="Write a comment ..."></textarea>
</div>

<script>
wysiwyg( '.wysiwyg', {
  toolbar: 'demand',                        // 'top','bottom','demand',null
  buttons: [buttons],                       // buttons on toolbar
  selectionbuttons: [selectionbuttons],     // buttons on selection-toolbar
  suggester: suggester( open_suggestion ),  // handle suggestions
  interceptenter: interceptenter(),         // intercept 'enter'
  hijackmenu: false                         // toolbar instead context menu
});
</script>

About

wysiwyg contenteditable editor (minified+compression: 6kb)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.8%
  • HTML 24.9%
  • SCSS 3.5%
  • CSS 2.1%
  • Other 0.7%