first commit
This commit is contained in:
Binary file not shown.
After Width: | Height: | Size: 454 B |
@ -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'
|
||||
});
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user