﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10365	setData doesn't clear properly the document listeners	Alfonso Martínez de Lizarrondo		"The sample file is just the API.html with an extra listener to the 'contentDom' event that logs an entry in the console and then sets a click listener on the body:
	contentDom : function(e) {
		console.log('contentDom');
		var doc = e.editor.document;
		doc.on('click', function() {
		console.log('click');
		});
	}

That setup works correctly in CKEditor 3, but in 4 it only works until setData is called. Then the contentDom event is logged, but the native listeners on the document remain (so they aren't attached again) although I think that the document itself is changed.

I mean: CKEditor thinks that the native listeners are already set for that element, but the element itself has changed and now no longer works until you switch from design to source and back forcing a full reset.

And this is why some people have been complaining that the onchange plugin doesn't work with CKEditor 4."	Bug	closed	Normal		Core : Editable	4.0	invalid		
