Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 803 Bytes

File metadata and controls

29 lines (22 loc) · 803 Bytes

jQuery-editor-action-buttons

Small jQuery plugin that put edit, save and cancel button on the editor area

screen capture

How to use

HTML: place your div any part of your page, preferrably on upper right corner of the editing area

<div class="editorButtons"></div>

JS: initialize the place holder with the buttons and assign actions to each buttons

$(".editorButtons").editorActionButtons({
	onSave: function(){
		// your save function here
	},
	onEdit: function(){
		// your edit initialization code here
	},
	onCancel: function(){
		// restore code here
	}
});

Note

The button uses bootstrap class and font icon class, you need to include these files on your page as well.