/*
Copyright 2013, KISSY UI Library v1.31
MIT Licensed
build time: Jul 29 13:11
*/
KISSY.add("editor/plugin/video/index",function(l,m,j,n,o){function e(c){this.config=c}l.augment(e,{pluginRenderUI:function(c){function g(b){for(var a=0;a<h.length;a++){var d=h[a];if(d.reg.test(b))return d}}o.init(c);var f=c.htmlDataProcessor,e=f&&f.dataFilter,h=[],i=this.config;i.providers&&h.push.apply(h,i.providers);i.getProvider=g;e&&e.addRules({tags:{object:function(b){var a=b.getAttribute("classid"),d=b.childNodes;if(!a){for(a=0;a<d.length;a++)if("embed"==d[a].nodeName){if(!j.isFlashEmbed(d[a]))break;
if(g(d[a].getAttribute("src")))return f.createFakeParserElement(b,"ke_video","video",!0)}return null}for(a=0;a<d.length;a++){var c=d[a];if("param"==c.nodeName&&"movie"==c.getAttribute("name").toLowerCase()&&g(c.getAttribute("value")||c.getAttribute("VALUE")))return f.createFakeParserElement(b,"ke_video","video",!0)}},embed:function(b){if(!j.isFlashEmbed(b))return null;if(g(b.getAttribute("src")))return f.createFakeParserElement(b,"ke_video","video",!0)}}},4);var k=new n({editor:c,cls:"ke_video",type:"video",
pluginConfig:this.config,bubbleId:"video",contextMenuId:"video",contextMenuHandlers:{"\u89c6\u9891\u5c5e\u6027":function(){var b=this.get("editorSelectedEl");b&&k.show(b)}}});c.addButton("video",{tooltip:"\u63d2\u5165\u89c6\u9891",listeners:{click:function(){k.show()}},mode:m.WYSIWYG_MODE})}});return e},{requires:["editor","../flash-common/utils","../flash-common/baseClass","../fake-objects/"]});
