Dotclear

source: plugins/dcCKEditor/js/ckeditor-plugins/img/plugin.js @ 2869:b8512d9705c0

Revision 2869:b8512d9705c0, 397 bytes checked in by franck <carnet.franck.paul@…>, 11 years ago (diff)

external-media CKEditor plugin renamed to (external) img plugin

Line 
1(function() {
2     CKEDITOR.plugins.add('img', {
3          init: function(editor) {
4               editor.addCommand('dcImgCommand', new CKEDITOR.dialogCommand('imgDialog'));
5
6               CKEDITOR.dialog.add('imgDialog', this.path+'dialogs/img.js');
7
8               editor.ui.addButton('img', {
9                    label: dotclear.msg.img_title,
10                    command: 'dcImgCommand',
11                    toolbar: 'insert',
12                    icon: this.path + 'icons/img.png'
13               });
14          }
15     });
16})();
Note: See TracBrowser for help on using the repository browser.

Sites map