Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -101,6 +101,7 @@ |
102 | 102 | }; |
103 | 103 | |
104 | 104 | $.wikiEditor.fixOperaBrokenness = function( s ) { |
| 105 | + /* |
105 | 106 | // This function works around Opera's |
106 | 107 | // broken newline handling in textareas. |
107 | 108 | // .val() has \n while selection functions |
— | — | @@ -113,11 +114,10 @@ |
114 | 115 | .height( 0 ) |
115 | 116 | .width( 0 ) |
116 | 117 | .insertBefore( $.wikiEditor.instances[0] ); |
117 | | - var textarea = $( '<textarea />' ) |
| 118 | + var textarea = $( '<textarea></textarea>' ) |
118 | 119 | .height( 0 ) |
119 | 120 | .appendTo( div ) |
120 | 121 | .val( "foo\r\nbar" ); |
121 | | - |
122 | 122 | // Try to search&replace bar --> BAR |
123 | 123 | var index = textarea.val().indexOf( 'bar' ); |
124 | 124 | textarea.select(); |
— | — | @@ -131,6 +131,7 @@ |
132 | 132 | } |
133 | 133 | if ( $.isOperaBroken ) |
134 | 134 | s = s.replace( /\n/g, "\r\n" ); |
| 135 | + */ |
135 | 136 | return s; |
136 | 137 | }; |
137 | 138 | |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.code.js |
— | — | @@ -112,9 +112,6 @@ |
113 | 113 | return context.modules.code.editor.active; |
114 | 114 | } |
115 | 115 | } |
116 | | - getCaretPosition: function( context ) { |
117 | | - |
118 | | - } |
119 | 116 | } |
120 | 117 | |
121 | 118 | }; } ) ( jQuery ); |