Permalink
Browse files

Merge pull request #926 from normann/ea_cherry_pick

Multiple HTMLEditorFields not redrawing fix
  • Loading branch information...
2 parents aff28eb + 5152164 commit 42a50651993f2493cfc4edf29826e0baaf922f3a @halkyon halkyon committed Nov 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 javascript/HtmlEditorField.js
View
5 javascript/HtmlEditorField.js
@@ -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);
});

0 comments on commit 42a5065

Please sign in to comment.