
/**************************************
    Webutler V3.0 - www.webutler.de
    Copyright (c) 2008 - 2014
    Autor: Sven Zinke
    Free for any use
    Lizenz: GPL
**************************************/

CKEDITOR.plugins.add('insertscript',{lang:[CKEDITOR.lang.detect(CKEDITOR.config.language)],init:function(editor)
{CKEDITOR.scriptLoader.load(this.path+'dialogs/loadjs.php');CKEDITOR.document.appendStyleSheet(this.path+'dialogs/style.css');var command=editor.addCommand('insertscript',new CKEDITOR.dialogCommand('insertscript'));command.canUndo=true;editor.ui.addButton('InsertScript',{label:editor.lang.insertscript.insertjs,icon:this.path+'jscript.png',command:'insertscript'});CKEDITOR.dialog.add('insertscript',this.path+'dialogs/insertscript.js');}});