Revision 2868:2f77d528185b,
493 bytes
checked in by Nicolas <nikrou77@…>, 9 years ago
(diff) |
Add external media for CKEditor
Allow link around external media
|
Line | |
---|
1 | (function() { |
---|
2 | CKEDITOR.plugins.add('external-media', { |
---|
3 | init: function(editor) { |
---|
4 | editor.addCommand('dcExternalMediaCommand', new CKEDITOR.dialogCommand('externalMediaDialog')); |
---|
5 | |
---|
6 | CKEDITOR.dialog.add('externalMediaDialog', this.path+'dialogs/external-media.js'); |
---|
7 | |
---|
8 | editor.ui.addButton('dcExternalMedia', { |
---|
9 | label: dotclear.msg.external_media_title, |
---|
10 | command: 'dcExternalMediaCommand', |
---|
11 | toolbar: 'insert', |
---|
12 | icon: this.path + 'icons/external-media.png' |
---|
13 | }); |
---|
14 | } |
---|
15 | }); |
---|
16 | })(); |
---|
Note: See
TracBrowser
for help on using the repository browser.