_.Module.define({ path:"common/component/EditorVideo",requires:["common/component/EditorVideo/EditorUrlvideo","common/component/EditorVideo/EditorLocalvideo"],sub:{ tempHTML:['
'].join(""),initial:function(a){},init:function(a,c){ var b=this,d=c.getConfig().can_local_upload; b.editor=c; b.j_con=a; a.html(this.tempHTML); b.bindEvent() } ,bindEvent:function(){ var a=this; a.j_con.find(".v_url_btn").click(function(c){ c.preventDefault(); c.stopPropagation(); if(a.urlVideo){ a.urlVideo.init(a.j_con,a.editor) } else{ a.urlVideo=a.use("common/component/EditorVideo/EditorUrlvideo"); a.urlVideo.init(a.j_con,a.editor) } }); var b=a.j_con.find(".v_url_container"); if(!window.v_con){ window.v_con=b } if(!window.localVideo){ window.localVideo=a.use("common/component/EditorVideo/EditorLocalvideo",b[0],a.editor) } else{ window.localVideo.init(b[0],a.editor) } b.click(function(c){}) } ,destroy:function(){ this.j_con=null } } });