#128 OnPaste event fixed for Mozilla/Firefox/Gecko

Version 2.x
closed
Editor (144)
5
2005-07-19
2005-06-22
Manuel Polo
No

A little change to code in fck_1_gecko.js :

var oOnKeyDown = function( e )
{
if ( e.ctrlKey && !e.shiftKey && !e.altKey )
{
// Char 86/118 = V/v
if ( e.which == 86 || e.which == 118 )
{
if ( FCK.Status == FCK_STATUS_COMPLETE )
{
if ( !FCK.Events.FireEvent( "OnPaste" ) ) {
e.preventDefault() ;
e.stopPropagation() ;
}
}
else {
e.preventDefault() ;
e.stopPropagation() ;
}
}
}
}
this.EditorDocument.addEventListener( 'keypress',
oOnKeyDown, false ) ;

Tested on Firefox 1.0.4.

Discussion

  • Frederico Caldeira Knabben

    • assigned_to: nobody --> fredck
     
  • Frederico Caldeira Knabben

    Logged In: YES
    user_id=572424

    This patch has been included in the last version.

     
  • Frederico Caldeira Knabben

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks