KISSY.Editor.add("sourcearea/support",function(){function f(){var a=this.mapper={};a[h]=this._show;a[i]=this._hide}var d=KISSY,e=d.Editor,g=d.UA,h=e.SOURCE_MODE,i=e.WYSIWYG_MODE;d.augment(f,{exec:function(a,b){var c=this.mapper;c[b]&&c[b].call(this,a)},_show:function(a){a.textarea.val(a.getData(true));this._showSource(a);a.fire("sourcemode")},_showSource:function(a){var b=a.textarea,c=a.iframe;b.css("display","");c.css("display","none");g.ieEngine<8&&b.css("height",a.wrap.css("height"));b[0].focus()},
_hideSource:function(a){var b=a.textarea;a.iframe.css("display","");b.css("display","none")},_hide:function(a){var b=a.textarea;this._hideSource(a);a.fire("save");a.setData(b.val());a.fire("wysiwygmode");a.fire("save");g.gecko&&a.activateGecko()}});e.SourceAreaSupport=new f},{attach:false});
