Changeset 4178
- Timestamp:
- 09/02/09 14:34:21 (4 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 3 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/contextmenu/plugin.js (modified) (2 diffs)
-
_source/plugins/panel/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r4177 r4178 59 59 <li><a href="http://dev.fckeditor.net/ticket/3978">#3978</a> : Fixed setStyle float on IE7 strict.</li> 60 60 <li><a href="http://dev.fckeditor.net/ticket/4262">#4262</a> : Tab and Shift+Tab was not working to cycle through CTRL+SHIFT+F10 context menu in IE.</li> 61 <li><a href="http://dev.fckeditor.net/ticket/3633">#3633</a> : Default context menu isn't disabled in toolbar, status bar, panels...</li> 61 62 </ul> 62 63 <h3> -
CKEditor/trunk/_source/plugins/contextmenu/plugin.js
r4131 r4178 36 36 }, 37 37 this); 38 39 // Disable context menu for top and bottom editor's UI parts. 40 var self = this; 41 editor.on( 'themeLoaded', function() 42 { 43 self.addDisabledTarget( this.container ); 44 } ); 38 45 }, 39 46 … … 148 155 }, 149 156 157 addDisabledTarget : function( element ) 158 { 159 element.on( 'contextmenu', function( event ) 160 { 161 // Cancel the browser context menu. 162 event.data.preventDefault(); 163 } ); 164 }, 165 150 166 addListener : function( listenerFn ) 151 167 { -
CKEditor/trunk/_source/plugins/panel/plugin.js
r4051 r4178 254 254 255 255 this._.focusIndex = -1; 256 257 // Disable context menu for panels. 258 if ( CKEDITOR.plugins.contextMenu ) 259 CKEDITOR.plugins.contextMenu.prototype.addDisabledTarget( this.element ); 256 260 }, 257 261
Note: See TracChangeset
for help on using the changeset viewer.
