#856: Provision for a custom onPaste code cleanup function
-----------------------------------------------+----------------------------
  Reporter:  [EMAIL PROTECTED]  |       Owner:              
      Type:  New Feature                       |      Status:  new         
  Priority:  Normal                            |   Milestone:              
 Component:  General                           |     Version:              
Resolution:                                    |    Keywords:  SF Confirmed
-----------------------------------------------+----------------------------
Changes (by arczi):

  * keywords:  SF => SF Confirmed


Comment:

 {{{
 function myOnPaste(fck){
         var data = fck.GetClipboardHTML();
         fck.InsertHtml(data.length +'"'+ data +'"');
         return false;
 }
 FCK.Events.AttachEvent( 'OnPaste', myOnPaste ) ;
 }}}
 This code works only in IE, in FF inserts 0"" because of:

 {{{
 FCK.GetClipboardHTML = function()
 {
         return '' ;
 }
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/856#comment:2>
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