Ticket #2687: plugin_contextmenu.patch
File plugin_contextmenu.patch, 1.4 KB (added by , 16 years ago) |
---|
-
editor/_source/internals/fck_contextmenu.js
24 24 25 25 FCK.ContextMenu = new Object() ; 26 26 FCK.ContextMenu.Listeners = new Array() ; 27 FCK.ContextMenu.LoadedCommands = new Array() ; 27 28 29 FCK.ContextMenu.RegisterCommand = function( commandName, command ) 30 { 31 this.LoadedCommands[ commandName ] = command ; 32 } 33 28 34 FCK.ContextMenu.RegisterListener = function( listener ) 29 35 { 30 36 if ( listener ) … … 48 54 49 55 function FCK_ContextMenu_GetListener( listenerName ) 50 56 { 57 var oListener = FCK.ContextMenu.LoadedCommands[ listenerName ] ; 58 if (oListener) 59 return oListener; 60 51 61 switch ( listenerName ) 52 62 { 53 63 case 'Generic' : -
editor/fckeditor.html
192 192 <script type="text/javascript"> 193 193 194 194 // Initialize the editing area context menu. 195 FCK_ContextMenu_Init() ;196 195 197 196 FCKPlugins.Load() ; 198 197 … … 208 207 window.onload = function() 209 208 { 210 209 InitializeAPI() ; 210 FCK_ContextMenu_Init() ; 211 211 212 212 if ( FCKBrowserInfo.IsIE ) 213 213 FCK_PreloadImages() ;