(function(){tinymce.PluginManager.requireLangPack('farcrycontenttemplates');tinymce.create('tinymce.plugins.farcrycontenttemplatesPlugin',{init:function(ed,url){ed.addCommand('mcefarcrycontenttemplates',function(){ed.windowManager.open({file:url+'/popup.cfm?objectid',width:500+parseInt(ed.getLang('farcrycontenttemplates.delta_width',0)),height:400+parseInt(ed.getLang('farcrycontenttemplates.delta_height',0)),inline:1},{plugin_url:url,some_custom_arg:'custom arg'})});ed.addButton('farcrycontenttemplates',{title:'farcrycontenttemplates.desc',cmd:'mcefarcrycontenttemplates',image:url+'/img/farcrycontenttemplates.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('farcrycontenttemplates',n.nodeName=='IMG')})},createControl:function(n,cm){return null},getInfo:function(){return{longname:'farcrycontenttemplates plugin',author:'Some author',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/farcrycontenttemplates',version:"1.0"}}});tinymce.PluginManager.add('farcrycontenttemplates',tinymce.plugins.farcrycontenttemplatesPlugin)})();