blob: 09f4d3de295f1f7f4b080bfc15d8a243bd6104ab (
plain) (
blame)
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
28
29
30
31
32
33
34
|
/**
* Created by pc on 13.2.2015.
*/
CKEDITOR.plugins.add( 'vecikon', {
icons: 'vecikon',
lang: 'en,sl',
init: function( editor ) {
//// Create a toolbar button that executes the above command.
editor.ui.addButton( 'Vecikon', {
// The text part of the button (if available) and the tooltip.
label: editor.lang.vecikon.title,
// The command to execute on click.
command: 'vecikon',
// The button placement in the toolbar (toolbar group name).
toolbar: 'insert, 100'
});
editor.addCommand('vecikon', new CKEDITOR.command( editor, {
exec: function (editor) {
var id = editor.name;
get_full_editor(id);
//CKEDITOR.instances[id].destroy();
//CKEDITOR.replace( '#'+id, {toolbar: 'Full'});
}
}));
}
});
|