(function(){var a=tinymce.each;tinymce.PluginManager.requireLangPack("moodlemedia");tinymce.create("tinymce.plugins.MoodlemediaPlugin",{init:function(b,c){var d=this;d.editor=b;d.url=c;b.addCommand("mceMoodleMedia",function(){b.windowManager.open({file:c+"/moodlemedia.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+parseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("moodlemedia",{title:"Moodle Media",image:c+"/img/icon.gif",cmd:"mceMoodleMedia"})},_parse:function(b){return tinymce.util.JSON.parse("{"+b+"}")},getInfo:function(){return{longname:"Moodle media",author:"Dongsheng Cai <dongsheng@moodle.com>",version:"1.0"}}});tinymce.PluginManager.add("moodlemedia",tinymce.plugins.MoodlemediaPlugin)})();
