HackerWins/summernote — pull request #662 by easylogic (2014-10-16 06:41:31+00:00)
Title: add simple plugin system

I add a simple plug-in feature to the Summernote.

```javascript
// define plugin
$.summernote.plugins = {

"chart" : {
label : '', // default button label
icon : '', // if it has a icon property, there are create a icon button.
dropdown : function () { // if you want to make a dropdown button, use dropwdown property.
return "

...blabla

";
},
event : function (e, editor, layout) { // callback function
},
}

}

// use plugin
$(".xxx").summernote({
toolbar : [
......,
['mychart' , ['chart'] ] // write plugin name
]
});

```
Reference to examples/plugin.html for detail plugin code.