YUI.add("editor-para-base",function(i,t){var e=function(){e.superclass.constructor.apply(this,arguments)},a="host",r="> p",o="p";i.extend(e,i.Base,{_getRoot:function(){return this.get(a).getInstance().EditorSelection.ROOT},_fixFirstPara:function(){var t=this.get(a).getInstance(),e=this._getRoot(),i=e.getHTML(),n=!!i.length;"<br>"===i&&(i="",n=!1),e.setHTML("<"+o+">"+i+t.EditorSelection.CURSOR+"</"+o+">"),i=e.one(r),(new t.EditorSelection).selectNode(i,!0,n)},_afterEditorReady:function(){var t=this.get(a).getInstance();t&&(t.EditorSelection.filterBlocks(),t=t.EditorSelection.DEFAULT_BLOCK_TAG,r="> "+t,o=t)},_afterContentChange:function(){var t=this.get(a).getInstance();t&&t.EditorSelection&&t.EditorSelection.filterBlocks()},_afterPaste:function(){var t=this.get(a),e=t.getInstance();i.later(50,t,function(){e.EditorSelection.filterBlocks()})},initializer:function(){var t=this.get(a);t.editorBR?i.error("Can not plug EditorPara and EditorBR at the same time."):(t.after("ready",i.bind(this._afterEditorReady,this)),t.after("contentChange",i.bind(this._afterContentChange,this)),i.Env.webkit&&t.after("dom:paste",i.bind(this._afterPaste,this)))}},{NAME:"editorParaBase",NS:"editorParaBase",ATTRS:{host:{value:!1}}}),i.namespace("Plugin"),i.Plugin.EditorParaBase=e},"patched-v3.18.7",{requires:["editor-base"]});