diff --git a/var/httpd/htdocs/js/Core.UI.RichTextEditor.js b/var/httpd/htdocs/js/Core.UI.RichTextEditor.js index f7b47d47a74..d2c6220ecdc 100644 --- a/var/httpd/htdocs/js/Core.UI.RichTextEditor.js +++ b/var/httpd/htdocs/js/Core.UI.RichTextEditor.js @@ -422,6 +422,14 @@ Core.UI.RichTextEditor = (function (TargetNS) { }; /* eslint-enable no-unused-vars */ + // Needed for clientside validation of RTE + CKEDITOR.instances[EditorID].on('blur', function () { + CKEDITOR.instances[EditorID].updateElement(); + if (!$EditorArea.hasClass('Error')) { + Core.Form.Validate.ValidateElement($EditorArea); + } + }); + // needed for client-side validation CKEDITOR.instances[EditorID].on('focus', function () {