You can change the entire look and feel, can able to add button / event / can do anything with it. Read documentation here or more example here
HTML:
<div id="editor" placeholder="Type here ... "></div>
CSS:
<link rel="stylesheet" href="path_to/easyeditor.css">
JS:
<script src="path_to/jquery.min.js"></script>
<script src="path_to/jquery.easyeditor.js"></script>
<script>
EasyEditor.prototype.font = function(){
var _this = this;
var settings = {
buttonIdentifier: 'font',
buttonHtml: 'Font',
clickHandler: function(){
_this.openDropdownOf('font');
},
hasChild: true
};
_this.injectButton(settings);
};
EasyEditor.prototype.calibri = function(){
var _this = this;
var settings = {
buttonIdentifier: 'calibri',
buttonHtml: 'Calibri',
clickHandler: function(){
_this.wrapSelectionWithNodeName({ nodeName: 'span', style: 'font-family: Calibri,sans-serif', keepHtml: true });
},
childOf: 'font'
};
_this.injectButton(settings);
};
EasyEditor.prototype.georgia = function(){
var _this = this;
var settings = {
buttonIdentifier: 'georgia',
buttonHtml: 'Georgia',
clickHandler: function(){
_this.wrapSelectionWithNodeName({ nodeName: 'span', style: 'font-family: Georgia,serif', keepHtml: true });
},
childOf: 'font'
};
_this.injectButton(settings);
};
jQuery(document).ready(function($) {
new EasyEditor('#editor', {
buttons: ['bold', 'italic', 'link', 'h2', 'quote', 'font', 'calibri', 'georgia', 'x']
});
});
</script>