YUI.add("editor-para-ie",function(t,e){var a=function(){a.superclass.constructor.apply(this,arguments)},u="host";t.extend(a,t.Plugin.EditorParaBase,{_getRoot:function(){return this.get(u).getInstance().EditorSelection.ROOT},_onNodeChange:function(e){var t,a,r,o,n,i,s=this.get(u),d=s.getInstance().EditorSelection.DEFAULT_BLOCK_TAG,c=":last-child",h=!1;switch(e.changedType){case"enter-up":if(r=(a=this._lastPara||e.changedNode).one("br.yui-cursor"),this._lastPara&&delete this._lastPara,r&&(r.previous()||r.next())&&r.ancestor("p")&&r.remove(),a.test(d)||(o=a.ancestor(d))&&(a=o,0),a.test(d)&&(t=a.previous())){for(n=t.one(c);!h;)n&&(i=n.one(c))?n=i:h=!0;n&&s.copyStyles(n,a)}break;case"enter":e.changedNode.test("br")?e.changedNode.remove():e.changedNode.test("p, span")&&(r=e.changedNode.one("br.yui-cursor"))&&r.remove()}},initializer:function(){var e=this.get(u);e.editorBR?t.error("Can not plug EditorPara and EditorBR at the same time."):e.on("nodeChange",t.bind(this._onNodeChange,this))}},{NAME:"editorPara",NS:"editorPara",ATTRS:{host:{value:!1}}}),t.namespace("Plugin"),t.Plugin.EditorPara=a},"patched-v3.18.7",{requires:["editor-para-base"]});