Index: branches/wmf-deployment/extensions/UsabilityInitiative_alpha/js/plugins/jquery.wikiEditor.js |
— | — | @@ -273,6 +273,7 @@ |
274 | 274 | * processing of events which did not actually change the content of the iframe. |
275 | 275 | */ |
276 | 276 | 'keydown': function( event ) { |
| 277 | + /* |
277 | 278 | switch ( event.which ) { |
278 | 279 | case 90: // z |
279 | 280 | if ( ( event.ctrlKey || event.metaKey ) && context.history.length ) { |
— | — | @@ -302,6 +303,7 @@ |
303 | 304 | } |
304 | 305 | break; |
305 | 306 | } |
| 307 | + */ |
306 | 308 | return true; |
307 | 309 | }, |
308 | 310 | 'change': function( event ) { |
Index: branches/wmf-deployment/extensions/UsabilityInitiative_alpha/js/plugins.combined.js |
— | — | @@ -6706,6 +6706,7 @@ |
6707 | 6707 | * processing of events which did not actually change the content of the iframe. |
6708 | 6708 | */ |
6709 | 6709 | 'keydown': function( event ) { |
| 6710 | + /* |
6710 | 6711 | switch ( event.which ) { |
6711 | 6712 | case 90: // z |
6712 | 6713 | if ( ( event.ctrlKey || event.metaKey ) && context.history.length ) { |
— | — | @@ -6735,6 +6736,7 @@ |
6736 | 6737 | } |
6737 | 6738 | break; |
6738 | 6739 | } |
| 6740 | + */ |
6739 | 6741 | return true; |
6740 | 6742 | }, |
6741 | 6743 | 'change': function( event ) { |
Index: branches/wmf-deployment/extensions/UsabilityInitiative_alpha/js/plugins.combined.min.js |
— | — | @@ -444,11 +444,7 @@ |
445 | 445 | return src+'?'+wgWikiEditorIconVersion;}};$.fn.wikiEditor=function(){if(!$j.wikiEditor.isSupported()){return $(this);} |
446 | 446 | var context=$(this).data('wikiEditor-context');if(typeof context=='undefined'){context={'$textarea':$(this),'views':{},'modules':{},'data':{},'instance':$.wikiEditor.instances.push($(this))-1,'offsets':null,'htmlToTextMap':{},'oldHTML':null,'oldDelayedHTML':null,'savedSelection':null,'history':[],'historyPosition':-1};context.api={'addModule':function(context,data){var modules={};if(typeof data=='string'){modules[data]={};}else if(typeof data=='object'){modules=data;} |
447 | 447 | for(var module in modules){if(typeof module=='string'&&module in $.wikiEditor.modules){if('api'in $.wikiEditor.modules[module]){for(var call in $.wikiEditor.modules[module].api){if(!(call in context.api)){context.api[call]=$.wikiEditor.modules[module].api[call];}}} |
448 | | -if('fn'in $.wikiEditor.modules[module]&&'create'in $.wikiEditor.modules[module].fn){context.modules[module]={};$.wikiEditor.modules[module].fn.create(context,modules[module]);}}}}};context.evt={'keydown':function(event){switch(event.which){case 90:if((event.ctrlKey||event.metaKey)&&context.history.length){if(event.shiftKey){context.historyPosition++;}else{context.historyPosition--;} |
449 | | -if(context.history.length+context.historyPosition>=0&&context.historyPosition<0){context.$content.html(context.history[context.history.length+context.historyPosition].html);}else{context.historyPosition=Math.max(-context.history.length,Math.min(context.historyPosition,-1));} |
450 | | -return false;} |
451 | | -break;} |
452 | | -return true;},'change':function(event){event.data.scope='division';var newHTML=context.$content.html();if(context.oldHTML!=newHTML){context.fn.purgeOffsets();context.oldHTML=newHTML;event.data.scope='realchange';} |
| 448 | +if('fn'in $.wikiEditor.modules[module]&&'create'in $.wikiEditor.modules[module].fn){context.modules[module]={};$.wikiEditor.modules[module].fn.create(context,modules[module]);}}}}};context.evt={'keydown':function(event){return true;},'change':function(event){event.data.scope='division';var newHTML=context.$content.html();if(context.oldHTML!=newHTML){context.fn.purgeOffsets();context.oldHTML=newHTML;event.data.scope='realchange';} |
453 | 449 | switch(event.which){case 8:break;} |
454 | 450 | return true;},'delayedChange':function(event){event.data.scope='division';var newHTML=context.$content.html();if(context.oldDelayedHTML!=newHTML){context.fn.purgeOffsets();context.oldDelayedHTML=newHTML;event.data.scope='realchange';if(newHTML!==context.history[context.history.length+context.historyPosition].html){context.historyPosition=-1;} |
455 | 451 | context.history.push({'html':newHTML});while(context.history.length>10){context.history.shift();}} |