first commit

This commit is contained in:
sujan
2024-08-06 18:06:00 +05:45
commit a2fa49071a
2745 changed files with 391199 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

View File

@ -0,0 +1,25 @@
CKEDITOR.plugins.add('opencart', {
init: function(editor) {
editor.addCommand('OpenCart', {
exec: function(editor) {
$('#modal-image').remove();
$.ajax({
url: 'index.php?route=common/filemanager&user_token=' + getURLVar('user_token') + '&ckeditor=' + editor.name,
dataType: 'html',
success: function(html) {
$('body').append(html);
$('#modal-image').modal('show');
}
});
}
});
editor.ui.addButton('OpenCart', {
label: 'OpenCart',
command: 'OpenCart',
icon: this.path + 'images/icon.png'
});
}
});