mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2628 from chillu/pulls/remove-tinymce-chancedetection
Remove TinyMCE change detection on insert (breaks IE8)
This commit is contained in:
commit
90017821a1
@ -1402,16 +1402,5 @@ function sapphiremce_cleanup(type, value) {
|
||||
});
|
||||
}
|
||||
|
||||
// if we are inserting from a popup back into the editor
|
||||
// add the changed class and update the Content value
|
||||
if(type == 'insert_to_editor' && typeof tinyMCE.selectedInstance.editorId !== 'undefined') {
|
||||
var field = jQuery('#' + tinyMCE.selectedInstance.editorId);
|
||||
var original = field.val();
|
||||
if (original != value) {
|
||||
field.val(value).addClass('changed');
|
||||
field.closest('form').addClass('changed');
|
||||
}
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user