Changeset 343

Show
Ignore:
Timestamp:
2007-06-01 16:10:04 (3 years ago)
Author:
fredck
Message:

Fixed #436 : Introducing the new FirefoxSpellChecker and BrowserContextMenuOnCtrl settings to enable/disable Firefox's spell checker and the possibility of displaying the default browser's context menu when holding CTRL on right-click.

Location:
FCKeditor/trunk
Files:
5 modified

Legend:

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

    r248 r343  
    2424var FCKContextMenu = function( parentWindow, langDir ) 
    2525{ 
     26        this.CtrlDisable = false ; 
     27 
    2628        var oPanel = this._Panel = new FCKPanel( parentWindow ) ; 
    2729        oPanel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ; 
     
    8890                if ( el._FCKContextMenu ) 
    8991                { 
     92                        if ( el._FCKContextMenu.CtrlDisable && ( e.ctrlKey || e.metaKey ) ) 
     93                                return true ; 
     94 
    9095                        FCKTools.CancelEvent( e ) ; 
    9196                        FCKContextMenu_AttachedElement_OnContextMenu( e, el._FCKContextMenu, el ) ; 
     
    101106//      if ( iButton != 2 ) 
    102107//              return ; 
     108 
     109        if ( fckContextMenu.CtrlDisable && ( ev.ctrlKey || ev.metaKey ) ) 
     110                return true ; 
    103111 
    104112        var eTarget = el || this ; 
  • FCKeditor/trunk/editor/_source/internals/fck_contextmenu.js

    r202 r343  
    3535{ 
    3636        var oInnerContextMenu = FCK.ContextMenu._InnerContextMenu = new FCKContextMenu( FCKBrowserInfo.IsIE ? window : window.parent, FCKLang.Dir ) ; 
     37        oInnerContextMenu.CtrlDisable   = FCKConfig.BrowserContextMenuOnCtrl ; 
    3738        oInnerContextMenu.OnBeforeOpen  = FCK_ContextMenu_OnBeforeOpen ; 
    3839        oInnerContextMenu.OnItemClick   = FCK_ContextMenu_OnItemClick ; 
  • FCKeditor/trunk/editor/_source/internals/fck.js

    r321 r343  
    9494 
    9595                this.EditingArea = new FCKEditingArea( document.getElementById( 'xEditingArea' ) ) ; 
    96                 this.EditingArea.FFSpellChecker = false ; 
     96                this.EditingArea.FFSpellChecker = FCKConfig.FirefoxSpellChecker ; 
    9797 
    9898                // Final setup of the lists lib. 
  • FCKeditor/trunk/fckconfig.js

    r310 r343  
    137137 
    138138FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ; 
     139FCKConfig.BrowserContextMenuOnCtrl = false ; 
    139140 
    140141FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; 
     
    150151FCKConfig.IeSpellDownloadUrl    = 'http://www.iespell.com/download.php' ; 
    151152FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;        // Available extension: .php .cfm .pl 
     153FCKConfig.FirefoxSpellChecker   = false ; 
    152154 
    153155FCKConfig.MaxUndoLevels = 15 ; 
  • FCKeditor/trunk/_whatsnew.html

    r342 r343  
    4040                <li>It is now possible to set the default target when creating links, with the new "<strong>DefaultLinkTarget</strong>" 
    4141                        setting. </li> 
     42                <li>The new "<strong>FirefoxSpellChecker</strong>" setting is available, to enable/disable 
     43                        the Firefox built-in spellchecker while typing. Even if word suggestions will not 
     44                        appear in the FCKeditor context menu, this feature is useful to quickly identify 
     45                        misspelled words.</li> 
     46                <li>The new "<strong>BrowserContextMenuOnCtrl</strong>" settings is being introduced, 
     47                        to enable/disable the ability of displaying the default browser's context menu when 
     48                        right-clicking with the CTRL key pressed.</li> 
    4249        </ul> 
    4350        <p>