(function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(b,a){function c(d){b.windowManager.open({file:a+"/searchreplace.htm",width:420+parseInt(b.getLang("searchreplace.delta_width",0)),height:170+parseInt(b.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:b.selection.getContent({format:"text"}),plugin_url:a})}b.addCommand("mceSearch",function(){c("search")});b.addCommand("mceReplace",function(){c("replace")});b.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});b.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});b.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})();