#2596: Ctrl+Shift+Enter mode
--------------------------+-------------------------------------------------
  Reporter:  simshaun     |       Owner:           
      Type:  New Feature  |      Status:  new      
  Priority:  Normal       |   Milestone:           
 Component:  General      |     Version:           
Resolution:               |    Keywords:  Confirmed
--------------------------+-------------------------------------------------

Comment(by simshaun):

 Well I'm new to this whole feature request thing, so I'm not sure if I
 should be attaching all this or not, so I'll just list what I did.

 This is more of a summary of what I added. Anyone who does a bit of
 programming should be able to look through the JavaScript and figure out
 where it goes.

 Added to fckeditorcode_gecko.js
     var FCKEnterKey
         - F paramater
         - CtrlShiftEnter keystroke
         - case 'CtrlShiftEnter':return C.DoCtrlShiftEnter();break;
         - FCKEnterKey.prototype.DoCtrlShiftEnter=function(){return
 this.DoEnter(this.CtrlShiftEnterMode,true);};

 Added to fckeditorcode_ie.js
     var FCKEnterKey
         - F paramater
         - CtrlShiftEnter keystroke
         - case 'CtrlShiftEnter':return C.DoCtrlShiftEnter();break;
         - FCKEnterKey.prototype.DoCtrlShiftEnter=function(){return
 this.DoEnter(this.CtrlShiftEnterMode,true);};

 Added to fckenterkey.js
     FCKEnterKey
         - parameter ctrlShiftEnterMode
         - this.CtrlShiftEnterMode    = ctrlShiftEnterMode || 'div' ;
         - [ CTRL + SHIFT + 13, 'CtrlShiftEnter' ],
     FCKEnterKey_OnKeystroke
         - case 'CtrlShiftEnter' :
                 return oEnterKey.DoCtrlShiftEnter() ;
                 break ;

     /*
     * Executes the <Ctrl>+<Shift>+<Enter> key behavior.
     */
     FCKEnterKey.prototype.DoCtrlShiftEnter = function()
     {
         return this.DoEnter( this.CtrlShiftEnterMode, true ) ;
     }


 Added to fckconfig.js
     FCKConfig.CtrlShiftEnterMode = 'div' ;    // p | div | br

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2596#comment:3>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to