AVE.CMS v3.28
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
401 B

7 years ago
CKEDITOR.plugins.add('savedocs', {
init: function(a) {
var cmd = a.addCommand('savedoc', {
exec: saveAjax
})
a.ui.addButton('savedocs', {
label: 'Save',
command: 'savedoc',
icon: this.path + "images/save.png"
})
}
})
function saveAjax(e) {
var theForm = e.element.$.form;
if (typeof(theForm.onsubmit) == 'function') {
SaveAjax();
return false;
} else {
SaveAjax();
}
}