diff --git a/js/forms-json-utils.js b/js/forms-json-utils.js index 0e0602119..add2ace78 100644 --- a/js/forms-json-utils.js +++ b/js/forms-json-utils.js @@ -202,13 +202,17 @@ function ReportFieldValidationStatus(sFieldId, sFormId, bValid, sExplain) } // Visual feedback $('#v_'+sFieldId).html(''); - $('#v_'+sFieldId).tooltip({ - items: 'span', - tooltipClass: 'form_field_error', - content: function() { - return $(this).find('img').attr('data-tooltip'); // As opposed to the default 'content' handler, do not escape the contents of 'title' - } - }); + //Avoid replacing exisiting tooltip for periodically checked element (like CKeditor fields) + if($('#v_'+sFieldId).tooltip( "instance" ) === undefined) + { + $('#v_'+sFieldId).tooltip({ + items: 'span', + tooltipClass: 'form_field_error', + content: function() { + return $(this).find('img').attr('data-tooltip'); // As opposed to the default 'content' handler, do not escape the contents of 'title' + } + }); + } } }