YUI.add("editor-lists",function(i,e){var r=function(){r.superclass.constructor.apply(this,arguments)},d="li",c="ol",l="host";i.extend(r,i.Base,{_onNodeChange:function(e){var t,n,s=this.get(l).getInstance(),a=!1,o=!1;"tab"===e.changedType&&(e.changedNode.test("li, li *")&&(e.changedEvent.halt(),e.preventDefault(),t=e.changedNode,e=e.changedEvent.shiftKey,n="ul",t.ancestor("ol,ul").get("tagName").toLowerCase()===c&&(n=c),t.test(d)||(t=t.ancestor(d)),e?t.ancestor(d)&&(t.ancestor(d).insert(t,"after"),o=a=!0):t.previous(d)&&(e=s.Node.create("<"+n+"></"+n+">"),t.previous(d).append(e),e.append(t),a=!0)),a)&&((t=t.test(d)?t:t.ancestor(d)).all(r.REMOVE).remove(),i.UA.ie&&(t=t.append(r.NON).one(r.NON_SEL)),(new s.EditorSelection).selectNode(t,!0,o))},initializer:function(){this.get(l).on("nodeChange",i.bind(this._onNodeChange,this))}},{NON:'<span class="yui-non">&nbsp;</span>',NON_SEL:"span.yui-non",REMOVE:"br",NAME:"editorLists",NS:"lists",ATTRS:{host:{value:!1}}}),i.namespace("Plugin"),i.Plugin.EditorLists=r},"patched-v3.18.7",{requires:["editor-base"]});