CKEDITOR.plugins.add('mysave',
{
init: function (editor) {
editor.addCommand('mysave',
{
exec: function (editor) {
// Save the content to database using Ajax
// ....
editor.destroy(false);
}
});
editor.ui.addButton('MySave',
{
label: 'Save',
command: 'mysave',
icon: this.path + 'images/disk.png'
});
}
});http://localhost/MySite/ckeditor_3.6.2/ckeditor.js
