tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(n,i){this.editor=n,n.addCommand("mceAdvLink",(function(){var e=n.selection;e.isCollapsed()&&!n.dom.getParent(e.getNode(),"A")||n.windowManager.open({file:i+"/link.htm",width:480+parseInt(n.getLang("advlink.delta_width",0)),height:400+parseInt(n.getLang("advlink.delta_height",0)),inline:1},{plugin_url:i})})),n.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"}),n.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink"),n.onNodeChange.add((function(n,i,e,t){i.setDisabled("link",t&&"A"!=e.nodeName),i.setActive("link","A"==e.nodeName&&!e.name)}))},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}}),tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin);
