Ticket #8007: 8007.patch
File 8007.patch, 6.0 KB (added by , 14 years ago) |
---|
-
_source/plugins/richcombo/plugin.js
199 199 200 200 output.push( 201 201 ' onkeydown="CKEDITOR.tools.callFunction( ', keyDownFn, ', event, this );"' + 202 ' onfocus="return CKEDITOR.tools.callFunction(', focusFn, ', event);" ' + 203 ( CKEDITOR.env.ie ? 'onmouseup' : 'onclick' ) + // #188 204 '="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + 202 ' onfocus="return CKEDITOR.tools.callFunction(', focusFn, ', event);"' + 203 ' onclick="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + 205 204 '<span>' + 206 205 '<span id="' + id + '_text" class="cke_text cke_inline_label">' + this.label + '</span>' + 207 206 '</span>' + -
_source/plugins/menu/plugin.js
475 475 output.push( 476 476 // ' onkeydown="return CKEDITOR.ui.button._.keydown(', index, ', event);"' + 477 477 ' onmouseover="CKEDITOR.tools.callFunction(', menu._.itemOverFn, ',', index, ');"' + 478 ' onmouseout="CKEDITOR.tools.callFunction(', menu._.itemOutFn, ',', index, ');" ' + 479 ( CKEDITOR.env.ie ? 'onmouseup' : 'onclick' ) + // #188 480 '="CKEDITOR.tools.callFunction(', menu._.itemClickFn, ',', index, '); return false;"' + 478 ' onmouseout="CKEDITOR.tools.callFunction(', menu._.itemOutFn, ',', index, ');"' + 479 ' onclick="CKEDITOR.tools.callFunction(', menu._.itemClickFn, ',', index, '); return false;"' + 481 480 '>' + 482 481 '<span class="cke_icon_wrapper"><span class="cke_icon"' + 483 482 ( this.icon ? ' style="background-image:url(' + CKEDITOR.getUrl( this.icon ) + ');background-position:0 ' + offset + 'px;"' -
_source/core/dom/element.js
1245 1245 this.on( 'dragstart', function( evt ) { evt.data.preventDefault(); } ); 1246 1246 } 1247 1247 : 1248 // IE and Opera 1248 1249 function() 1249 1250 { 1250 if ( CKEDITOR.env.ie || CKEDITOR.env.opera ) 1251 { 1252 var element = this.$, 1253 e, 1254 i = 0; 1255 1256 element.unselectable = 'on'; 1257 1258 while ( ( e = element.all[ i++ ] ) ) 1259 { 1260 switch ( e.tagName.toLowerCase() ) 1261 { 1262 case 'iframe' : 1263 case 'textarea' : 1264 case 'input' : 1265 case 'select' : 1266 /* Ignore the above tags */ 1267 break; 1268 default : 1269 e.unselectable = 'on'; 1270 } 1271 } 1272 } 1251 this.$.unselectable = 'on'; 1273 1252 }, 1274 1253 1275 1254 getPositionedAncestor : function() -
_source/themes/default/theme.js
155 155 '</span>' + 156 156 '</span>' ].join( '' ) ); 157 157 158 container.getChild( [1, 0, 0, 0, 0] ).unselectable(); 159 container.getChild( [1, 0, 0, 0, 2] ).unselectable(); 158 // Make the theme spaces unelectable, avoid taking way focus when clicked. 159 container.getChild( [1, 0, 0, 0, 0, 0] ).unselectable(); 160 container.getChild( [1, 0, 0, 0, 2, 0 ] ).unselectable(); 161 container.on( 'mousedown', function( evt ) 162 { 163 var target = evt.data.getTarget(); 164 !target.hasAscendant( 'a', 1 ) && evt.data.preventDefault(); 165 }); 160 166 161 167 if ( elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) 162 168 container.insertAfter( element ); -
_source/plugins/button/plugin.js
210 210 211 211 output.push( 212 212 ' onkeydown="return CKEDITOR.tools.callFunction(', keydownFn, ', event);"' + 213 ' onfocus="return CKEDITOR.tools.callFunction(', focusFn,', event);" ' + 214 ( CKEDITOR.env.ie ? 'onmouseup' : 'onclick' ) + // #188 215 '="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + 213 ' onfocus="return CKEDITOR.tools.callFunction(', focusFn,', event);"' + 214 ' onclick="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + 216 215 '<span class="cke_icon"' ); 217 216 218 217 if ( this.icon ) -
_source/plugins/listblock/plugin.js
96 96 '<li id=', id, ' class=cke_panel_listItem role=presentation>' + 97 97 '<a id="', id, '_option" _cke_focus=1 hidefocus=true' + 98 98 ' title="', title || value, '"' + 99 ' href="javascript:void(\'', value, '\')" ' + 100 ( CKEDITOR.env.ie ? 'onmouseup' : 'onclick' ) + // #188 101 '="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;"', 99 ' href="javascript:void(\'', value, '\')"' + 100 ' onclick="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;"', 102 101 ' role="option"' + 103 102 ' aria-posinset="' + ++this._.size + '">', 104 103 html || value, -
_source/plugins/toolbar/plugin.js
172 172 173 173 var labelId = CKEDITOR.tools.getNextId(); 174 174 175 var output = [ '<div class="cke_toolbox" role="group" aria-labelledby="', labelId, '" onmousedown="return false;"' ],175 var output = [ '<div class="cke_toolbox" role="group" aria-labelledby="', labelId, '"' ], 176 176 expanded = editor.config.toolbarStartupExpanded !== false, 177 177 groupStarted; 178 178