Changeset 4196
- Timestamp:
- 09/07/09 12:21:47 (4 years ago)
- Location:
- CKEditor/trunk/_source
- Files:
-
- 3 edited
-
core/dom/element.js (modified) (1 diff)
-
plugins/contextmenu/plugin.js (modified) (2 diffs)
-
themes/default/theme.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/core/dom/element.js
r4034 r4196 1381 1381 { 1382 1382 return this.$.childNodes.length; 1383 } 1383 }, 1384 1385 disableContextMenu : function() 1386 { 1387 this.on( 'contextmenu', function( event ) 1388 { 1389 // Cancel the browser context menu. 1390 if ( !event.data.getTarget().hasClass( 'cke_enable_context_menu' ) ) 1391 event.data.preventDefault(); 1392 } ); 1393 } 1384 1394 }); -
CKEditor/trunk/_source/plugins/contextmenu/plugin.js
r4182 r4196 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 } );45 38 }, 46 39 … … 155 148 }, 156 149 157 addDisabledTarget : function( element )158 {159 element.on( 'contextmenu', function( event )160 {161 // Cancel the browser context menu.162 if ( !event.data.getTarget().hasClass( 'cke_enable_context_menu' ) )163 event.data.preventDefault();164 } );165 },166 167 150 addListener : function( listenerFn ) 168 151 { -
CKEditor/trunk/_source/themes/default/theme.js
r4167 r4196 87 87 editor.container = container; 88 88 89 // Disable browser context menu for editor's chrome. 90 container.disableContextMenu(); 91 89 92 editor.fireOnce( 'themeLoaded' ); 90 93 editor.fireOnce( 'uiReady' );
Note: See TracChangeset
for help on using the changeset viewer.
