mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #926 from normann/ea_cherry_pick
Multiple HTMLEditorFields not redrawing fix
This commit is contained in:
commit
42a5065199
@ -272,8 +272,11 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
||||
ed.create(this.attr('id'), config, function() {
|
||||
// Delayed show because TinyMCE calls hide() via setTimeout on removing an element,
|
||||
// which is called in quick succession with adding a new editor after ajax loading new markup
|
||||
|
||||
//storing the container object before setting timeout
|
||||
var redrawObj = $(ed.getInstance().getContainer());
|
||||
setTimeout(function() {
|
||||
$(ed.getContainer()).show();
|
||||
redrawObj.show();
|
||||
}, 10);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user