silverstripe-framework/javascript
Ingo Schommer 3b8fb42654 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 d12ae82f70 for context.
2013-10-31 14:40:28 +01:00
..
jquery-ondemand Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
lang Updated Te Reo translation 2013-10-08 21:28:35 +02:00
tree Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
AssetUploadField.js NEW Show the allowed extensions as a toggle tip as per trac 7993 2012-12-19 17:00:39 +01:00
ConfirmedPasswordField.js FIX: Disable autocomplete on ConfirmedPasswordField instances. 2013-05-10 20:32:59 +12:00
DateField.js DateField.js event selector regression (fixes #1528) 2013-04-16 09:54:30 +02:00
GridField.js FIX gridfield delete alert selector specificity 2013-10-07 14:24:16 +03:00
HtmlEditorField.js Remove TinyMCE change detection on insert (breaks IE8) 2013-10-31 14:40:28 +01:00
i18n.js Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
i18nx.js ENHANCEMENT: change those harded-coded 'sapphire' to 'framework' either in javascript code or inline document, or a <a> href propty. 2012-10-05 17:00:39 +13:00
InlineFormAction.js MINOR Fixed js accessor (thanks AngryPHPNerd) 2012-02-16 23:07:24 +01:00
PermissionCheckboxSetField.js BUGFIX: 2013-09-02 12:46:31 +12:00
SelectionGroup.js API Removed keyed arrays for title/value setting in SelectionGroup 2012-12-11 11:06:06 +01:00
TabSet.js API Allow ignoring persistent tab state through entwine property. 2012-12-13 17:43:25 +01:00
ToggleCompositeField.js Set 'active' correctly for accordion widget 2012-12-18 23:22:37 -08:00
ToggleField.js BUG Fixing ToggleField to work correctly with jQuery 2012-11-16 11:33:58 +13:00
TreeDropdownField.js FIX: Allow TreeDropdownField to open upwards (fixes #2188) 2013-10-23 13:32:01 +01:00
UploadField_downloadtemplate.js API UploadField functions on new records 2013-05-27 15:22:59 +12:00
UploadField_select.js BUGFIX: add missing onunmatches 2012-05-23 16:24:15 +12:00
UploadField_uploadtemplate.js API UploadField functions on new records 2013-05-27 15:22:59 +12:00
UploadField.js Merge pull request #2558 from chillu/pulls/uploadfield-874 2013-10-23 13:00:39 -07:00