/
plugin.js
27 lines (24 loc) · 832 Bytes
/
plugin.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CKEDITOR.plugins.add('streamingPlayer', {
requires: ['dialog', 'fakeobjects'],
lang: ['en'],
init: function(editor) {
CKEDITOR.tools.extend(CKEDITOR.config, {
streamingPlayer: {
movie: '',
extraFlashVars: '',
width : 852,
height : 480
}
});
var cmdName = 'streamingPlayer';
var cmd = editor.addCommand(cmdName, new CKEDITOR.dialogCommand(cmdName));
cmd.modes = {wysiwyg: 1, source: 0};
cmd.canUndo = false;
editor.ui.addButton('streamingPlayer', {
label: editor.lang.streamingPlayer.btnLabel,
icon: this.path + 'images/btn_icon.gif',
command: cmdName
});
CKEDITOR.dialog.add(cmdName, this.path + 'dialogs/streamingPlayer.js');
}
});