Permalink
Browse files

Merge remote-tracking branch 'upstream/master'

  • Loading branch information...
2 parents ce96b3a + bc09c9b commit bd36827968dcc53643104e867100a21062d2ff77 @jafl committed Jul 4, 2012
Showing with 639 additions and 234 deletions.
  1. +1 −1 build/createlink-base/createlink-base-debug.js
  2. +1 −1 build/createlink-base/createlink-base-min.js
  3. +1 −1 build/createlink-base/createlink-base.js
  4. +3 −3 build/editor-base/editor-base-debug.js
  5. +2 −2 build/editor-base/editor-base-min.js
  6. +3 −3 build/editor-base/editor-base.js
  7. +1 −1 build/editor-bidi/editor-bidi-debug.js
  8. +1 −1 build/editor-bidi/editor-bidi-min.js
  9. +1 −1 build/editor-bidi/editor-bidi.js
  10. +1 −1 build/editor-br/editor-br-debug.js
  11. +1 −1 build/editor-br/editor-br-min.js
  12. +1 −1 build/editor-br/editor-br.js
  13. +1 −1 build/editor-lists/editor-lists-debug.js
  14. +1 −1 build/editor-lists/editor-lists-min.js
  15. +1 −1 build/editor-lists/editor-lists.js
  16. +1 −1 build/editor-para-base/editor-para-base-debug.js
  17. +1 −1 build/editor-para-base/editor-para-base-min.js
  18. +1 −1 build/editor-para-base/editor-para-base.js
  19. +1 −1 build/editor-para-ie/editor-para-ie-debug.js
  20. +1 −1 build/editor-para-ie/editor-para-ie-min.js
  21. +1 −1 build/editor-para-ie/editor-para-ie.js
  22. +1 −1 build/editor-para/editor-para-debug.js
  23. +1 −1 build/editor-para/editor-para-min.js
  24. +1 −1 build/editor-para/editor-para.js
  25. +1 −1 build/editor-selection/editor-selection-debug.js
  26. +1 −1 build/editor-selection/editor-selection-min.js
  27. +1 −1 build/editor-selection/editor-selection.js
  28. +1 −1 build/editor-tab/editor-tab-debug.js
  29. +1 −1 build/editor-tab/editor-tab-min.js
  30. +1 −1 build/editor-tab/editor-tab.js
  31. +1 −1 build/exec-command/exec-command-debug.js
  32. +1 −1 build/exec-command/exec-command-min.js
  33. +1 −1 build/exec-command/exec-command.js
  34. +1 −1 build/frame/frame-debug.js
  35. +1 −1 build/frame/frame-min.js
  36. +1 −1 build/frame/frame.js
  37. +2 −2 build/loader-base/loader-base-debug.js
  38. +1 −1 build/loader-base/loader-base-min.js
  39. +1 −1 build/loader-base/loader-base.js
  40. +2 −2 build/loader/loader-debug.js
  41. +1 −1 build/loader/loader-min.js
  42. +1 −1 build/loader/loader.js
  43. +13 −7 build/simpleyui/simpleyui-debug.js
  44. +9 −9 build/simpleyui/simpleyui-min.js
  45. +13 −7 build/simpleyui/simpleyui.js
  46. +13 −7 build/yui-base/yui-base-debug.js
  47. +6 −6 build/yui-base/yui-base-min.js
  48. +13 −7 build/yui-base/yui-base.js
  49. +13 −7 build/yui-core/yui-core-debug.js
  50. +3 −3 build/yui-core/yui-core-min.js
  51. +13 −7 build/yui-core/yui-core.js
  52. +15 −9 build/yui-nodejs/yui-nodejs-debug.js
  53. +9 −9 build/yui-nodejs/yui-nodejs-min.js
  54. +14 −8 build/yui-nodejs/yui-nodejs.js
  55. +15 −9 build/yui/yui-debug.js
  56. +8 −8 build/yui/yui-min.js
  57. +14 −8 build/yui/yui.js
  58. +22 −0 src/common/node/list.js
  59. +9 −2 src/common/travis/test.sh
  60. +2 −2 src/editor/js/editor-base.js
  61. +2 −2 src/loader/js/loader.js
  62. +20 −0 src/loader/tests/loader-tests.js
  63. +20 −0 src/node/docs/assets/dom-node-tests.js
  64. +1 −1 src/node/docs/assets/ducks-tests.js
  65. +37 −0 src/node/docs/assets/events-tests.js
  66. +22 −0 src/node/docs/assets/node-evt-delegation-tests.js
  67. +29 −0 src/node/docs/assets/node-style-tests.js
  68. +20 −0 src/node/docs/assets/node-view-tests.js
  69. +17 −0 src/node/docs/assets/node-xy-tests.js
  70. +5 −2 src/node/docs/assets/node.css
  71. +1 −3 src/node/docs/assets/nodelist-tests.js
  72. +28 −0 src/node/docs/assets/properties-tests.js
  73. +6 −6 src/node/docs/dom-node.mustache
  74. +8 −8 src/node/docs/node-evt-delegation.mustache
  75. +5 −7 src/node/docs/node-style.mustache
  76. +1 −1 src/node/docs/nodelist.mustache
  77. +11 −6 src/node/docs/partials/dom-node-source.mustache
  78. +2 −1 src/node/docs/partials/events-source.mustache
  79. +12 −7 src/node/docs/partials/node-evt-delegation-source.mustache
  80. +35 −8 src/node/docs/partials/node-style-source.mustache
  81. +18 −3 src/node/docs/partials/node-view-source.mustache
  82. +13 −7 src/simpleyui/js/concat.js
  83. +1 −1 src/yui/js/yui-ua.js
  84. +12 −6 src/yui/js/yui.js
  85. +3 −0 src/yui/tests/assets/skin-test/assets/skins/green/skin-test.css
  86. +3 −0 src/yui/tests/assets/skin-test/assets/skins/sam/skin-test.css
  87. +3 −0 src/yui/tests/assets/skin-test/skin-test.js
  88. +40 −1 src/yui/tests/core-tests.js
  89. +11 −0 src/yui/tests/ua-yui-data.js
@@ -82,4 +82,4 @@ YUI.add('createlink-base', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -1 +1 @@
-YUI.add("createlink-base",function(b){var a={};a.STRINGS={PROMPT:"Please enter the URL for the link to point to:",DEFAULT:"http://"};b.namespace("Plugin");b.Plugin.CreateLinkBase=a;b.mix(b.Plugin.ExecCommand.COMMANDS,{createlink:function(i){var h=this.get("host").getInstance(),e,c,g,f,d=prompt(a.STRINGS.PROMPT,a.STRINGS.DEFAULT);if(d){f=h.config.doc.createElement("div");d=d.replace(/"/g,"").replace(/'/g,"");d=h.config.doc.createTextNode(d);f.appendChild(d);d=f.innerHTML;this.get("host")._execCommand(i,d);g=new h.EditorSelection();e=g.getSelected();if(!g.isCollapsed&&e.size()){c=e.item(0).one("a");if(c){e.item(0).replace(c);}if(b.UA.gecko){if(c.get("parentNode").test("span")){if(c.get("parentNode").one("br.yui-cursor")){c.get("parentNode").insert(c,"before");}}}}else{this.get("host").execCommand("inserthtml",'<a href="'+d+'">'+d+"</a>");}}return c;}});},"@VERSION@",{requires:["editor-base"],skinnable:false});
+YUI.add("createlink-base",function(b){var a={};a.STRINGS={PROMPT:"Please enter the URL for the link to point to:",DEFAULT:"http://"};b.namespace("Plugin");b.Plugin.CreateLinkBase=a;b.mix(b.Plugin.ExecCommand.COMMANDS,{createlink:function(i){var h=this.get("host").getInstance(),e,c,g,f,d=prompt(a.STRINGS.PROMPT,a.STRINGS.DEFAULT);if(d){f=h.config.doc.createElement("div");d=d.replace(/"/g,"").replace(/'/g,"");d=h.config.doc.createTextNode(d);f.appendChild(d);d=f.innerHTML;this.get("host")._execCommand(i,d);g=new h.EditorSelection();e=g.getSelected();if(!g.isCollapsed&&e.size()){c=e.item(0).one("a");if(c){e.item(0).replace(c);}if(b.UA.gecko){if(c.get("parentNode").test("span")){if(c.get("parentNode").one("br.yui-cursor")){c.get("parentNode").insert(c,"before");}}}}else{this.get("host").execCommand("inserthtml",'<a href="'+d+'">'+d+"</a>");}}return c;}});},"@VERSION@",{skinnable:false,requires:["editor-base"]});
@@ -81,4 +81,4 @@ YUI.add('createlink-base', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -247,10 +247,10 @@ YUI.add('editor-base', function(Y) {
cmds.italic = 1;
}
- if (s.textDecoration == 'underline') {
+ if (s.textDecoration.indexOf('underline') > -1) {
cmds.underline = 1;
}
- if (s.textDecoration == 'line-through') {
+ if (s.textDecoration.indexOf('line-through') > -1) {
cmds.strikethrough = 1;
}
@@ -905,4 +905,4 @@ YUI.add('editor-base', function(Y) {
-}, '@VERSION@' ,{requires:['base', 'frame', 'node', 'exec-command', 'editor-selection'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['base', 'frame', 'node', 'exec-command', 'editor-selection']});
Oops, something went wrong.
@@ -245,10 +245,10 @@ YUI.add('editor-base', function(Y) {
cmds.italic = 1;
}
- if (s.textDecoration == 'underline') {
+ if (s.textDecoration.indexOf('underline') > -1) {
cmds.underline = 1;
}
- if (s.textDecoration == 'line-through') {
+ if (s.textDecoration.indexOf('line-through') > -1) {
cmds.strikethrough = 1;
}
@@ -901,4 +901,4 @@ YUI.add('editor-base', function(Y) {
-}, '@VERSION@' ,{requires:['base', 'frame', 'node', 'exec-command', 'editor-selection'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['base', 'frame', 'node', 'exec-command', 'editor-selection']});
@@ -333,4 +333,4 @@ YUI.add('editor-bidi', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -1 +1 @@
-YUI.add("editor-bidi",function(a){var b=function(){b.superclass.constructor.apply(this,arguments);},i="host",h="dir",f="BODY",d="nodeChange",e="bidiContextChange",c=f+" > p",g="style";a.extend(b,a.Base,{lastDirection:null,firstEvent:null,_checkForChange:function(){var k=this.get(i),m=k.getInstance(),l=new m.EditorSelection(),j,n;if(l.isCollapsed){j=b.blockParent(l.focusNode);if(j){n=j.getStyle("direction");if(n!==this.lastDirection){k.fire(e,{changedTo:n});this.lastDirection=n;}}}else{k.fire(e,{changedTo:"select"});this.lastDirection=null;}},_afterNodeChange:function(j){if(this.firstEvent||b.EVENTS[j.changedType]){this._checkForChange();this.firstEvent=false;}},_afterMouseUp:function(j){this._checkForChange();this.firstEvent=false;},initializer:function(){var j=this.get(i);this.firstEvent=true;j.after(d,a.bind(this._afterNodeChange,this));j.after("dom:mouseup",a.bind(this._afterMouseUp,this));}},{EVENTS:{"backspace-up":true,"pageup-up":true,"pagedown-down":true,"end-up":true,"home-up":true,"left-up":true,"up-up":true,"right-up":true,"down-up":true,"delete-up":true},BLOCKS:a.EditorSelection.BLOCKS,DIV_WRAPPER:"<DIV></DIV>",blockParent:function(l,k){var j=l,n,m;if(!j){j=a.one(f);}if(!j.test(b.BLOCKS)){j=j.ancestor(b.BLOCKS);}if(k&&j.test(f)){n=a.Node.create(b.DIV_WRAPPER);j.get("children").each(function(p,o){if(o===0){m=p;}else{n.append(p);}});m.replace(n);n.prepend(m);j=n;}return j;},_NODE_SELECTED:"bidiSelected",addParents:function(m){var j,l,k;for(j=0;j<m.length;j+=1){m[j].setData(b._NODE_SELECTED,true);}for(j=0;j<m.length;j+=1){l=m[j].get("parentNode");if(!l.test(f)&&!l.getData(b._NODE_SELECTED)){k=true;l.get("children").some(function(n){if(!n.getData(b._NODE_SELECTED)){k=false;return true;}});if(k){m.push(l);l.setData(b._NODE_SELECTED,true);}}}for(j=0;j<m.length;j+=1){m[j].clearData(b._NODE_SELECTED);}return m;},NAME:"editorBidi",NS:"editorBidi",ATTRS:{host:{value:false}},RE_TEXT_ALIGN:/text-align:\s*\w*\s*;/,removeTextAlign:function(j){if(j){if(j.getAttribute(g).match(b.RE_TEXT_ALIGN)){j.setAttribute(g,j.getAttribute(g).replace(b.RE_TEXT_ALIGN,""));}if(j.hasAttribute("align")){j.removeAttribute("align");}}return j;}});a.namespace("Plugin");a.Plugin.EditorBidi=b;a.Plugin.ExecCommand.COMMANDS.bidi=function(m,s){var p=this.getInstance(),k=new p.EditorSelection(),r=this.get(i).get(i).editorBidi,j,n,o,t,l;if(!r){a.error("bidi execCommand is not available without the EditorBiDi plugin.");return;}p.EditorSelection.filterBlocks();if(k.isCollapsed){n=b.blockParent(k.anchorNode);if(!n){n=p.one("body").one(p.EditorSelection.BLOCKS);}n=b.removeTextAlign(n);if(!s){l=n.getAttribute(h);if(!l||l=="ltr"){s="rtl";}else{s="ltr";}}n.setAttribute(h,s);if(a.UA.ie){var q=n.all("br.yui-cursor");if(q.size()===1&&n.get("childNodes").size()==1){q.remove();}}j=n;}else{o=k.getSelected();t=[];o.each(function(u){t.push(b.blockParent(u));});t=p.all(b.addParents(t));t.each(function(v){var u=s;v=b.removeTextAlign(v);if(!u){l=v.getAttribute(h);if(!l||l=="ltr"){u="rtl";}else{u="ltr";}}v.setAttribute(h,u);});j=t;}r._checkForChange();return j;};},"@VERSION@",{requires:["editor-base"],skinnable:false});
+YUI.add("editor-bidi",function(a){var b=function(){b.superclass.constructor.apply(this,arguments);},i="host",h="dir",f="BODY",d="nodeChange",e="bidiContextChange",c=f+" > p",g="style";a.extend(b,a.Base,{lastDirection:null,firstEvent:null,_checkForChange:function(){var k=this.get(i),m=k.getInstance(),l=new m.EditorSelection(),j,n;if(l.isCollapsed){j=b.blockParent(l.focusNode);if(j){n=j.getStyle("direction");if(n!==this.lastDirection){k.fire(e,{changedTo:n});this.lastDirection=n;}}}else{k.fire(e,{changedTo:"select"});this.lastDirection=null;}},_afterNodeChange:function(j){if(this.firstEvent||b.EVENTS[j.changedType]){this._checkForChange();this.firstEvent=false;}},_afterMouseUp:function(j){this._checkForChange();this.firstEvent=false;},initializer:function(){var j=this.get(i);this.firstEvent=true;j.after(d,a.bind(this._afterNodeChange,this));j.after("dom:mouseup",a.bind(this._afterMouseUp,this));}},{EVENTS:{"backspace-up":true,"pageup-up":true,"pagedown-down":true,"end-up":true,"home-up":true,"left-up":true,"up-up":true,"right-up":true,"down-up":true,"delete-up":true},BLOCKS:a.EditorSelection.BLOCKS,DIV_WRAPPER:"<DIV></DIV>",blockParent:function(l,k){var j=l,n,m;if(!j){j=a.one(f);}if(!j.test(b.BLOCKS)){j=j.ancestor(b.BLOCKS);}if(k&&j.test(f)){n=a.Node.create(b.DIV_WRAPPER);j.get("children").each(function(p,o){if(o===0){m=p;}else{n.append(p);}});m.replace(n);n.prepend(m);j=n;}return j;},_NODE_SELECTED:"bidiSelected",addParents:function(m){var j,l,k;for(j=0;j<m.length;j+=1){m[j].setData(b._NODE_SELECTED,true);}for(j=0;j<m.length;j+=1){l=m[j].get("parentNode");if(!l.test(f)&&!l.getData(b._NODE_SELECTED)){k=true;l.get("children").some(function(n){if(!n.getData(b._NODE_SELECTED)){k=false;return true;}});if(k){m.push(l);l.setData(b._NODE_SELECTED,true);}}}for(j=0;j<m.length;j+=1){m[j].clearData(b._NODE_SELECTED);}return m;},NAME:"editorBidi",NS:"editorBidi",ATTRS:{host:{value:false}},RE_TEXT_ALIGN:/text-align:\s*\w*\s*;/,removeTextAlign:function(j){if(j){if(j.getAttribute(g).match(b.RE_TEXT_ALIGN)){j.setAttribute(g,j.getAttribute(g).replace(b.RE_TEXT_ALIGN,""));}if(j.hasAttribute("align")){j.removeAttribute("align");}}return j;}});a.namespace("Plugin");a.Plugin.EditorBidi=b;a.Plugin.ExecCommand.COMMANDS.bidi=function(m,s){var p=this.getInstance(),k=new p.EditorSelection(),r=this.get(i).get(i).editorBidi,j,n,o,t,l;if(!r){a.error("bidi execCommand is not available without the EditorBiDi plugin.");return;}p.EditorSelection.filterBlocks();if(k.isCollapsed){n=b.blockParent(k.anchorNode);if(!n){n=p.one("body").one(p.EditorSelection.BLOCKS);}n=b.removeTextAlign(n);if(!s){l=n.getAttribute(h);if(!l||l=="ltr"){s="rtl";}else{s="ltr";}}n.setAttribute(h,s);if(a.UA.ie){var q=n.all("br.yui-cursor");if(q.size()===1&&n.get("childNodes").size()==1){q.remove();}}j=n;}else{o=k.getSelected();t=[];o.each(function(u){t.push(b.blockParent(u));});t=p.all(b.addParents(t));t.each(function(v){var u=s;v=b.removeTextAlign(v);if(!u){l=v.getAttribute(h);if(!l||l=="ltr"){u="rtl";}else{u="ltr";}}v.setAttribute(h,u);});j=t;}r._checkForChange();return j;};},"@VERSION@",{skinnable:false,requires:["editor-base"]});
@@ -333,4 +333,4 @@ YUI.add('editor-bidi', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -128,4 +128,4 @@ YUI.add('editor-br', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -1 +1 @@
-YUI.add("editor-br",function(c){var d=function(){d.superclass.constructor.apply(this,arguments);},a="host",b="li";c.extend(d,c.Base,{_onKeyDown:function(j){if(j.stopped){j.halt();return;}if(j.keyCode==13){var g=this.get(a),i=g.getInstance(),h=new i.EditorSelection(),f="";if(h){if(c.UA.ie){if(!h.anchorNode||(!h.anchorNode.test(b)&&!h.anchorNode.ancestor(b))){var g=this.get(a);g.execCommand("inserthtml",i.EditorSelection.CURSOR);j.halt();}}if(c.UA.webkit){if(!h.anchorNode.test(b)&&!h.anchorNode.ancestor(b)){g.frame._execCommand("insertlinebreak",null);j.halt();}}}}},_afterEditorReady:function(){var e=this.get(a).getInstance();try{e.config.doc.execCommand("insertbronreturn",null,true);}catch(f){}if(c.UA.ie||c.UA.webkit){e.on("keydown",c.bind(this._onKeyDown,this),e.config.doc);}},_onNodeChange:function(h){switch(h.changedType){case"backspace-up":case"backspace-down":case"delete-up":var g=this.get(a).getInstance();var i=h.changedNode;var f=g.config.doc.createTextNode(" ");i.appendChild(f);i.removeChild(f);break;}},initializer:function(){var e=this.get(a);if(e.editorPara){c.error("Can not plug EditorBR and EditorPara at the same time.");return;}e.after("ready",c.bind(this._afterEditorReady,this));if(c.UA.gecko){e.on("nodeChange",c.bind(this._onNodeChange,this));}}},{NAME:"editorBR",NS:"editorBR",ATTRS:{host:{value:false}}});c.namespace("Plugin");c.Plugin.EditorBR=d;},"@VERSION@",{requires:["editor-base"],skinnable:false});
+YUI.add("editor-br",function(c){var d=function(){d.superclass.constructor.apply(this,arguments);},a="host",b="li";c.extend(d,c.Base,{_onKeyDown:function(j){if(j.stopped){j.halt();return;}if(j.keyCode==13){var g=this.get(a),i=g.getInstance(),h=new i.EditorSelection(),f="";if(h){if(c.UA.ie){if(!h.anchorNode||(!h.anchorNode.test(b)&&!h.anchorNode.ancestor(b))){var g=this.get(a);g.execCommand("inserthtml",i.EditorSelection.CURSOR);j.halt();}}if(c.UA.webkit){if(!h.anchorNode.test(b)&&!h.anchorNode.ancestor(b)){g.frame._execCommand("insertlinebreak",null);j.halt();}}}}},_afterEditorReady:function(){var e=this.get(a).getInstance();try{e.config.doc.execCommand("insertbronreturn",null,true);}catch(f){}if(c.UA.ie||c.UA.webkit){e.on("keydown",c.bind(this._onKeyDown,this),e.config.doc);}},_onNodeChange:function(h){switch(h.changedType){case"backspace-up":case"backspace-down":case"delete-up":var g=this.get(a).getInstance();var i=h.changedNode;var f=g.config.doc.createTextNode(" ");i.appendChild(f);i.removeChild(f);break;}},initializer:function(){var e=this.get(a);if(e.editorPara){c.error("Can not plug EditorBR and EditorPara at the same time.");return;}e.after("ready",c.bind(this._afterEditorReady,this));if(c.UA.gecko){e.on("nodeChange",c.bind(this._onNodeChange,this));}}},{NAME:"editorBR",NS:"editorBR",ATTRS:{host:{value:false}}});c.namespace("Plugin");c.Plugin.EditorBR=d;},"@VERSION@",{skinnable:false,requires:["editor-base"]});
@@ -128,4 +128,4 @@ YUI.add('editor-br', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -122,4 +122,4 @@ YUI.add('editor-lists', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -1 +1 @@
-YUI.add("editor-lists",function(f){var e=function(){e.superclass.constructor.apply(this,arguments);},b="li",c="ol",d="ul",a="host";f.extend(e,f.Base,{_onNodeChange:function(l){var j=this.get(a).getInstance(),g,o,p,h,i,m,n=false,q,k=false;if(l.changedType==="tab"){if(l.changedNode.test(b+", "+b+" *")){l.changedEvent.halt();l.preventDefault();o=l.changedNode;i=l.changedEvent.shiftKey;m=o.ancestor(c+","+d);q=d;if(m.get("tagName").toLowerCase()===c){q=c;}if(!o.test(b)){o=o.ancestor(b);}if(i){if(o.ancestor(b)){o.ancestor(b).insert(o,"after");n=true;k=true;}}else{if(o.previous(b)){h=j.Node.create("<"+q+"></"+q+">");o.previous(b).append(h);h.append(o);n=true;}}}if(n){if(!o.test(b)){o=o.ancestor(b);}o.all(e.REMOVE).remove();if(f.UA.ie){o=o.append(e.NON).one(e.NON_SEL);}(new j.EditorSelection()).selectNode(o,true,k);}}},initializer:function(){this.get(a).on("nodeChange",f.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:false}}});f.namespace("Plugin");f.Plugin.EditorLists=e;},"@VERSION@",{requires:["editor-base"],skinnable:false});
+YUI.add("editor-lists",function(f){var e=function(){e.superclass.constructor.apply(this,arguments);},b="li",c="ol",d="ul",a="host";f.extend(e,f.Base,{_onNodeChange:function(l){var j=this.get(a).getInstance(),g,o,p,h,i,m,n=false,q,k=false;if(l.changedType==="tab"){if(l.changedNode.test(b+", "+b+" *")){l.changedEvent.halt();l.preventDefault();o=l.changedNode;i=l.changedEvent.shiftKey;m=o.ancestor(c+","+d);q=d;if(m.get("tagName").toLowerCase()===c){q=c;}if(!o.test(b)){o=o.ancestor(b);}if(i){if(o.ancestor(b)){o.ancestor(b).insert(o,"after");n=true;k=true;}}else{if(o.previous(b)){h=j.Node.create("<"+q+"></"+q+">");o.previous(b).append(h);h.append(o);n=true;}}}if(n){if(!o.test(b)){o=o.ancestor(b);}o.all(e.REMOVE).remove();if(f.UA.ie){o=o.append(e.NON).one(e.NON_SEL);}(new j.EditorSelection()).selectNode(o,true,k);}}},initializer:function(){this.get(a).on("nodeChange",f.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:false}}});f.namespace("Plugin");f.Plugin.EditorLists=e;},"@VERSION@",{skinnable:false,requires:["editor-base"]});
@@ -117,4 +117,4 @@ YUI.add('editor-lists', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -121,4 +121,4 @@ YUI.add('editor-para-base', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -1 +1 @@
-YUI.add("editor-para-base",function(a){var i=function(){i.superclass.constructor.apply(this,arguments);},k="host",e="body",c="nodeChange",j="parentNode",b=e+" > p",g="p",f="<br>",h="firstChild",d="li";a.extend(i,a.Base,{_fixFirstPara:function(){var p=this.get(k),r=p.getInstance(),q,s,l=r.config.doc.body,o=l.innerHTML,m=((o.length)?true:false);if(o===f){o="";m=false;}l.innerHTML="<"+g+">"+o+r.EditorSelection.CURSOR+"</"+g+">";s=r.one(b);q=new r.EditorSelection();q.selectNode(s,true,m);},_afterEditorReady:function(){var m=this.get(k),n=m.getInstance(),l;if(n){n.EditorSelection.filterBlocks();l=n.EditorSelection.DEFAULT_BLOCK_TAG;b=e+" > "+l;g=l;}},_afterContentChange:function(){var l=this.get(k),m=l.getInstance();if(m&&m.EditorSelection){m.EditorSelection.filterBlocks();}},_afterPaste:function(){var l=this.get(k),n=l.getInstance(),m=new n.EditorSelection();a.later(50,l,function(){n.EditorSelection.filterBlocks();});},initializer:function(){var l=this.get(k);if(l.editorBR){a.error("Can not plug EditorPara and EditorBR at the same time.");return;}l.after("ready",a.bind(this._afterEditorReady,this));l.after("contentChange",a.bind(this._afterContentChange,this));if(a.Env.webkit){l.after("dom:paste",a.bind(this._afterPaste,this));}}},{NAME:"editorParaBase",NS:"editorParaBase",ATTRS:{host:{value:false}}});a.namespace("Plugin");a.Plugin.EditorParaBase=i;},"@VERSION@",{requires:["editor-base"],skinnable:false});
+YUI.add("editor-para-base",function(a){var i=function(){i.superclass.constructor.apply(this,arguments);},k="host",e="body",c="nodeChange",j="parentNode",b=e+" > p",g="p",f="<br>",h="firstChild",d="li";a.extend(i,a.Base,{_fixFirstPara:function(){var p=this.get(k),r=p.getInstance(),q,s,l=r.config.doc.body,o=l.innerHTML,m=((o.length)?true:false);if(o===f){o="";m=false;}l.innerHTML="<"+g+">"+o+r.EditorSelection.CURSOR+"</"+g+">";s=r.one(b);q=new r.EditorSelection();q.selectNode(s,true,m);},_afterEditorReady:function(){var m=this.get(k),n=m.getInstance(),l;if(n){n.EditorSelection.filterBlocks();l=n.EditorSelection.DEFAULT_BLOCK_TAG;b=e+" > "+l;g=l;}},_afterContentChange:function(){var l=this.get(k),m=l.getInstance();if(m&&m.EditorSelection){m.EditorSelection.filterBlocks();}},_afterPaste:function(){var l=this.get(k),n=l.getInstance(),m=new n.EditorSelection();a.later(50,l,function(){n.EditorSelection.filterBlocks();});},initializer:function(){var l=this.get(k);if(l.editorBR){a.error("Can not plug EditorPara and EditorBR at the same time.");return;}l.after("ready",a.bind(this._afterEditorReady,this));l.after("contentChange",a.bind(this._afterContentChange,this));if(a.Env.webkit){l.after("dom:paste",a.bind(this._afterPaste,this));}}},{NAME:"editorParaBase",NS:"editorParaBase",ATTRS:{host:{value:false}}});a.namespace("Plugin");a.Plugin.EditorParaBase=i;},"@VERSION@",{skinnable:false,requires:["editor-base"]});
@@ -120,4 +120,4 @@ YUI.add('editor-para-base', function(Y) {
-}, '@VERSION@' ,{requires:['editor-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
@@ -122,4 +122,4 @@ YUI.add('editor-para-ie', function(Y) {
-}, '@VERSION@' ,{requires:['editor-para-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['editor-para-base']});
Oops, something went wrong.

0 comments on commit bd36827

Please sign in to comment.