﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14922	event listeners leak between each setData	XipanXiao		"== Steps to reproduce ==

1. Switch the editor content by setting editor.data.
2. Repeat it many times and the CPU usage grows to 100%.


== Expected result ==

== Actual result ==

== Other details (browser, OS, CKEditor version, installed plugins) 
There are at least two identified source of leaks:
1. the clipboard plugin: a 'destroy' event listener is added each
   time content is loaded but never recycled.
(http://docs.ckeditor.com/source/plugin13.html)

  editor.on( 'contentDom', addPasteListenersToEditable );
  function addPasteListenersToEditable() {
    //...
    editor.on( 'destroy', function() {
      clearTimeout( mouseupTimeout );
    } );
  }


2. the magicline plugin:
 https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/magicline/plugin.js#L277
  But for this one I think I'll have to create a bug for them, 
  not for you.




==
"	Bug	confirmed	Normal		Performance	4.0			
