Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#996 closed Bug (fixed)

OnPaste listeners get executed twice

Reported by: Frederico Caldeira Knabben Owned by: Frederico Caldeira Knabben
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version: SVN (FCKeditor) - Retired
Keywords: Confirmed Cc:


When defining an OnPaste listener inline in the page, the target function get executed twice. It has been tested with IE7 only.

Steps to Reproduce

  1. Insert the following code at the top of sample01.html:
<script type="text/javascript">

function FCKeditor_OnComplete( editorInstance )
	editorInstance.Events.AttachEvent( 'OnPaste', myPasteListener ) ;

var myCounter = 0 ;

function myPasteListener( editorInstance )
	var textHtml = editorInstance.GetClipboardHTML() ; = ++myCounter ;

	editorInstance.InsertHtml( textHtml.toLowerCase() ) ;

	return false ;
  1. Open the page and try to paste. Note that the data is pasted twice, and the counter steps two numbers in the window title bar.

Change History (2)

comment:1 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: newclosed

Fixed with [587].

Click here for more info about our SVN system.

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

Milestone: FCKeditor 2.5
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy