Skip to content
Snippets Groups Projects
Commit 3c73a973 authored by srosse's avatar srosse
Browse files

OO-531: workaround to fix the freeze of the form in IE( if a rich text editor is used

parent 153b4c4e
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,8 @@ class RichTextElementRenderer implements ComponentRenderer {
// some special code to find out when the element is dirty. See the comments
// BTinyHelpers.js
sb.append("});");
sb.append("tinyMCE.get('").append(domID).append("').focus();");
sb.append("} };");
sb.append(checkAndLoadTinyFunctionName).append("();");
......
......@@ -112,8 +112,8 @@ var BTinyHelper = {
var newExecutor = jQuery.periodic({period: 500, decay:1.0, max_period: Number.MAX_VALUE}, function(executor) {
// first check if the html editor still exists on this page, otherwhise stop executing this code
var elem = jQuery('#' + elementId);
if (!elem) {
executor.cancel();
if (elem.length == 0) {
newExecutor.cancel();
BTinyHelper.formDirtyObservers.remove(observerKey);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment