Ticket #4647: 4647.patch
File 4647.patch, 836 bytes (added by , 13 years ago) |
---|
-
_source/plugins/contextmenu/plugin.js
54 54 menu = this._.menu = new CKEDITOR.menu( editor ); 55 55 menu.onClick = CKEDITOR.tools.bind( function( item ) 56 56 { 57 var noUnlock = true;58 57 menu.hide(); 59 58 60 if ( CKEDITOR.env.ie )61 menu.onEscape();62 63 59 if ( item.onClick ) 64 60 item.onClick(); 65 61 else if ( item.command ) 66 62 editor.execCommand( item.command ); 67 63 68 noUnlock = false;69 64 }, this ); 70 65 71 66 menu.onEscape = function() 72 67 { 73 68 editor.focus(); 74 75 if ( CKEDITOR.env.ie )76 editor.getSelection().unlock( true );77 69 }; 78 70 } 79 71