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
442 B

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