| Revision 3880:e6d1f6d9d7df,
479 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
|
Use let and const rather than var (ES2015/ES6), use template string where is more efficient
|
| Line | |
|---|
| 1 | /*global CKEDITOR, dotclear */ |
|---|
| 2 | 'use strict'; |
|---|
| 3 | |
|---|
| 4 | (function() { |
|---|
| 5 | CKEDITOR.plugins.add('img', { |
|---|
| 6 | init: function(editor) { |
|---|
| 7 | editor.addCommand('dcImgCommand', new CKEDITOR.dialogCommand('imgDialog')); |
|---|
| 8 | |
|---|
| 9 | CKEDITOR.dialog.add('imgDialog', this.path + 'dialogs/img.js'); |
|---|
| 10 | |
|---|
| 11 | editor.ui.addButton('img', { |
|---|
| 12 | label: dotclear.msg.img_title, |
|---|
| 13 | command: 'dcImgCommand', |
|---|
| 14 | toolbar: 'insert', |
|---|
| 15 | icon: this.path + 'icons/img.png' |
|---|
| 16 | }); |
|---|
| 17 | } |
|---|
| 18 | }); |
|---|
| 19 | })(); |
|---|
Note: See
TracBrowser
for help on using the repository browser.