Skip to content

Commit

Permalink
Don't wipe out CKEDITOR instances if they already exist
Browse files Browse the repository at this point in the history
This fixes an issue where HTML custom field inputs could
not be updated via inline edit on the ticket display page
on the first try, but the value could be updated on a
second Save.
  • Loading branch information
cbrandtbuffalo committed Jul 30, 2024
1 parent 42fc9b6 commit f45d3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/static/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function textToHTML(value) {
};

function ReplaceAllTextareas(elt) {
CKEDITOR = { "instances": {} };
window.CKEDITOR ||= { "instances": {} };

elt ||= document;
// replace all content and signature message boxes
Expand Down

0 comments on commit f45d3f9

Please sign in to comment.