Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -153,7 +153,7 @@ |
154 | 154 | array( |
155 | 155 | 'src' => 'js/plugins/jquery.wikiEditor.js', |
156 | 156 | 'class' => 'j.wikiEditor', |
157 | | - 'version' => 53 |
| 157 | + 'version' => 54 |
158 | 158 | ), |
159 | 159 | array( |
160 | 160 | 'src' => 'js/plugins/jquery.wikiEditor.highlight.js', |
— | — | @@ -191,10 +191,10 @@ |
192 | 192 | 'version' => 1 ), |
193 | 193 | ), |
194 | 194 | 'combined' => array( |
195 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 154 ), |
| 195 | + array( 'src' => 'js/plugins.combined.js', 'version' => 155 ), |
196 | 196 | ), |
197 | 197 | 'minified' => array( |
198 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 154 ), |
| 198 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 155 ), |
199 | 199 | ), |
200 | 200 | ), |
201 | 201 | ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -722,7 +722,7 @@ |
723 | 723 | html = html.replace( /\t/g, '<span class="wikiEditor-tab"></span>' ); |
724 | 724 | } |
725 | 725 | // We must append, because IE will crash if we set html() - which is the same as empty() and append() |
726 | | - context.$content.append( html.replace( /\r?\n/g, '<br />' ) ); |
| 726 | + context.$content.html( html.replace( /\r?\n/g, '<br />' ) ); |
727 | 727 | // Reflect direction of parent frame into child |
728 | 728 | if ( $( 'body' ).is( '.rtl' ) ) { |
729 | 729 | context.$content.addClass( 'rtl' ).attr( 'dir', 'rtl' ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -7203,7 +7203,7 @@ |
7204 | 7204 | html = html.replace( /\t/g, '<span class="wikiEditor-tab"></span>' ); |
7205 | 7205 | } |
7206 | 7206 | // We must append, because IE will crash if we set html() - which is the same as empty() and append() |
7207 | | - context.$content.append( html.replace( /\r?\n/g, '<br />' ) ); |
| 7207 | + context.$content.html( html.replace( /\r?\n/g, '<br />' ) ); |
7208 | 7208 | // Reflect direction of parent frame into child |
7209 | 7209 | if ( $( 'body' ).is( '.rtl' ) ) { |
7210 | 7210 | context.$content.addClass( 'rtl' ).attr( 'dir', 'rtl' ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -473,7 +473,7 @@ |
474 | 474 | context.$content=$(context.$iframe[0].contentWindow.document.body);var html=context.$textarea.val().replace(/\</g,'<').replace(/\>/g,'>');if($.browser.msie){if($.browser.versionNumber<=7){var prefix='',suffix=html;while(suffix){var match=suffix.match(/(^|\n) /);if(match){prefix+=suffix.substr(0,match.index+match[0].length-1)+' ';suffix=suffix.substr(match.index+match[0].length);}else{break;}} |
475 | 475 | html=prefix+suffix;}else{html=html.replace(/(^|\n) /g,"$1 ");} |
476 | 476 | html=html.replace(/\t/g,'<span class="wikiEditor-tab"></span>');} |
477 | | -context.$content.append(html.replace(/\r?\n/g,'<br />'));if($('body').is('.rtl')){context.$content.addClass('rtl').attr('dir','rtl');} |
| 477 | +context.$content.html(html.replace(/\r?\n/g,'<br />'));if($('body').is('.rtl')){context.$content.addClass('rtl').attr('dir','rtl');} |
478 | 478 | context.$textarea.attr('disabled',true);context.$textarea.hide();context.$iframe.show();context.fn.trigger('ready');});context.$textarea.closest('form').submit(function(){context.$textarea.attr('disabled',false);context.$textarea.val(context.$textarea.textSelection('getContents'));});} |
479 | 479 | arguments=$.makeArray(arguments);if(arguments.length>0){var call=arguments.shift();if(call in context.api){context.api[call](context,typeof arguments[0]=='undefined'?{}:arguments[0]);}} |
480 | 480 | return $(this).data('wikiEditor-context',context);};})(jQuery);RegExp.escape=function(s){return s.replace(/([.*+?^${}()|\/\\[\]])/g,'\\$1');};(function($){$.wikiEditor.modules.dialogs={api:{addDialog:function(context,data){$.wikiEditor.modules.dialogs.fn.create(context,data)},openDialog:function(context,module){if(module in $.wikiEditor.modules.dialogs.modules){$('#'+$.wikiEditor.modules.dialogs.modules[module].id).dialog('open');}},closeDialog:function(context,data){if(module in $.wikiEditor.modules.dialogs.modules){$('#'+$.wikiEditor.modules.dialogs.modules[module].id).dialog('close');}}},fn:{create:function(context,config){for(module in config){$.wikiEditor.modules.dialogs.modules[module]=config[module];} |