/* TYPOlight Open Source CMS :: Copyright (C) 2005-2010 Leo Feyer :: LGPL license */
(function(){tinymce.create("tinymce.plugins.TypolinksPlugin",{init:function(a,b){a.addCommand("mceTypolinks",function(){a.windowManager.open({file:b+"/typolinks.php",width:360+parseInt(a.getLang("typolinks.delta_width",0)),height:256+parseInt(a.getLang("typolinks.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("typolinks",{title:"typolinks.link_desc",cmd:"mceTypolinks",image:b+"/img/link.gif"});
a.addShortcut("ctrl+k","typolinks.desc","mceTypolinks");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("typolinks",e&&f.nodeName!="A");c.setActive("typolinks",f.nodeName=="A")});a.addCommand("mceTypobox",function(){a.windowManager.open({file:b+"/typobox.html",width:360+parseInt(a.getLang("typobox.delta_width",0)),height:230+parseInt(a.getLang("typobox.delta_height",0)),inline:1},{plugin_url:b})
});a.addButton("typobox",{title:"typolinks.image_desc",cmd:"mceTypobox",image:b+"/img/image.gif"})},getInfo:function(){return{longname:"TYPOlight plugin",author:"Leo Feyer",authorurl:"http://www.inetrobots.com",infourl:"http://www.typolight.org",version:"3.2.7"}}});tinymce.PluginManager.add("typolinks",tinymce.plugins.TypolinksPlugin)})();