silverstripe/silverstripe-framework — pull request #2628 by chillu (2013-10-31 13:41:40+00:00)
Title: Remove TinyMCE change detection on insert (breaks IE8)

The detection is triggered on first load, and in IE8 the inserted value
doesn't equal the value already in the textarea field. That's possibly due to
whitespace or encoding differences, but they have the same character length.

Tried fixing this by whitespace removal, didn't work: if((original ||
'').replace(/[\s\t\n\r]/g, '') != (value || '').replace(/[\s\t\n\r]/g, '')) {

In the end, we're already detecting changes through a 5s interval triggering
the save() method on the editor if the field is focused. The impact of this
removal is that after inserting an image, it'll take a few seconds for the
change detection to kick in
(and thus highlight the "save" button and ask for confirmation when navigating
away without saving).

See d12ae82f70038ef08f444e7e6e0157491228319b for context.