Changeset 2221

Show
Ignore:
Timestamp:
2008-07-15 09:08:23 (20 months ago)
Author:
martinkou
Message:

Fixed #2252 : It's now possible to enable the browsers default menu using the configuration file (FCKConfig.BrowserContextMenu option).

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckcontextmenu.js

    r1629 r2221  
    9191function FCKContextMenu_Document_OnContextMenu( e ) 
    9292{ 
     93        if ( FCKConfig.BrowserContextMenu ) 
     94                return true ; 
     95 
    9396        var el = e.target ; 
    9497 
     
    115118        if( !e || e.button != 2 ) 
    116119                return false ; 
     120 
     121        if ( FCKConfig.BrowserContextMenu ) 
     122                return true ; 
    117123 
    118124        var el = e.target ; 
     
    147153function FCKContextMenu_Document_OnMouseUp( e ) 
    148154{ 
     155        if ( FCKConfig.BrowserContextMenu ) 
     156                return true ; 
     157 
    149158        var overrideButton = FCKContextMenu_OverrideButton ; 
    150159 
     
    166175function FCKContextMenu_AttachedElement_OnContextMenu( ev, fckContextMenu, el ) 
    167176{ 
    168         if ( fckContextMenu.CtrlDisable && ( ev.ctrlKey || ev.metaKey ) ) 
     177        if ( ( fckContextMenu.CtrlDisable && ( ev.ctrlKey || ev.metaKey ) ) || FCKConfig.BrowserContextMenu ) 
    169178                return true ; 
    170179 
  • FCKeditor/trunk/fckconfig.js

    r2209 r2221  
    148148FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ; 
    149149FCKConfig.BrowserContextMenuOnCtrl = false ; 
     150FCKConfig.BrowserContextMenu = false ; 
    150151 
    151152FCKConfig.EnableMoreFontColors = true ; 
  • FCKeditor/trunk/_whatsnew.html

    r2220 r2221  
    4545                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2234">#2234</a>] Added the 
    4646                        ability to create, modify and remove Div containers.</li> 
     47                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2252">#2252</a>] It's now possible to enable the 
     48                        browsers default menu using the configuration file (FCKConfig.BrowserContextMenu option).</li>  
    4749        </ul> 
    4850        <p>