mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix periodic tinymce layout refresh
This commit is contained in:
parent
350ee4d421
commit
62ed2d0f22
@ -92,7 +92,12 @@ ss.editorWrappers.tinyMCE = (function() {
|
|||||||
var interval;
|
var interval;
|
||||||
jQuery(ed.getBody()).on('focus', function() {
|
jQuery(ed.getBody()).on('focus', function() {
|
||||||
interval = setInterval(function() {
|
interval = setInterval(function() {
|
||||||
ed.save();
|
// Update underlying element as necessary
|
||||||
|
var element = jQuery(ed.getElement());
|
||||||
|
if(ed.isDirty()) {
|
||||||
|
// Set content without triggering editor content cleanup
|
||||||
|
element.val(ed.getContent({format : 'raw', no_events : 1}));
|
||||||
|
}
|
||||||
}, 5000);
|
}, 5000);
|
||||||
});
|
});
|
||||||
jQuery(ed.getBody()).on('blur', function() {
|
jQuery(ed.getBody()).on('blur', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user