Ticket #3633: 3633_4.patch
File 3633_4.patch, 2.5 KB (added by , 14 years ago) |
---|
-
_source/plugins/panel/plugin.js
253 253 this.keys = {}; 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 258 262 _ : {}, -
_source/plugins/sourcearea/plugin.js
36 36 tabIndex : -1 37 37 }); 38 38 textarea.addClass( 'cke_source' ); 39 textarea.addClass( 'cke_enable_context_menu' ); 39 40 40 41 var styles = 41 42 { -
_source/plugins/contextmenu/plugin.js
35 35 editor.execCommand( commandName ); 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 40 47 _ : … … 147 154 this ); 148 155 }, 149 156 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 150 167 addListener : function( listenerFn ) 151 168 { 152 169 this._.listeners.push( listenerFn ); -
CHANGES.html
48 48 <li><a href="http://dev.fckeditor.net/ticket/3528">#3528</a> : Fixed Context Menu issue when triggered using Shift+F10.</li> 49 49 <li><a href="http://dev.fckeditor.net/ticket/4028">#4028</a> : Maximize control's tool tip was wrong once it is maximized.</li> 50 50 <li><a href="http://dev.fckeditor.net/ticket/4237">#4237</a> : ToolBar is chopped off in Safari browser 3.x.</li> 51 <li><a href="http://dev.fckeditor.net/ticket/3633">#3633</a> : Default context menu isn't disabled in toolbar, status bar, panels...</li> 51 52 </ul> 52 53 <h3> 53 54 CKEditor 3.0</h3>