Ticket #3633: 3633.patch
File 3633.patch, 2.1 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/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 disable = this.addDisabledTarget; 41 editor.on( 'themeLoaded', function() 42 { 43 // Top. 44 disable( this.container.getChild( [ 0, 0, 0, 0, 0 ] ) ); 45 // Bottom. 46 disable( this.container.getChild( [ 0, 0, 0, 0, 2 ] ) ); 47 } ); 38 48 }, 39 49 40 50 _ : … … 147 157 this ); 148 158 }, 149 159 160 addDisabledTarget : function( element ) 161 { 162 element.on( 'contextmenu', function( event ) 163 { 164 // Cancel the browser context menu. 165 event.data.preventDefault(); 166 } ); 167 }, 168 150 169 addListener : function( listenerFn ) 151 170 { 152 171 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>