diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
commit | 19985dbb8c0aa66dc4bf7905abc1148de909097d (patch) | |
tree | 2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /editors/ckeditor_4_4/plugins/vecikon/plugin.js | |
download | 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip |
Diffstat (limited to 'editors/ckeditor_4_4/plugins/vecikon/plugin.js')
-rw-r--r-- | editors/ckeditor_4_4/plugins/vecikon/plugin.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/editors/ckeditor_4_4/plugins/vecikon/plugin.js b/editors/ckeditor_4_4/plugins/vecikon/plugin.js new file mode 100644 index 0000000..09f4d3d --- /dev/null +++ b/editors/ckeditor_4_4/plugins/vecikon/plugin.js @@ -0,0 +1,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'});
+ }
+ }));
+
+
+ }
+});
|