Skip to content

Commit

Permalink
Fixed hidden text area of RTE not being updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
jepf committed Dec 11, 2023
1 parent 8896dfd commit a574470
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions var/httpd/htdocs/js/Core.UI.RichTextEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {

Expand Down

0 comments on commit a574470

Please sign in to comment.