Skip to content

Commit

Permalink
pr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Oct 22, 2024
1 parent b228d9b commit 2e65d50
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 198 deletions.
13 changes: 0 additions & 13 deletions app/assets/javascripts/hyrax/save_work/required_fields.es6
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,4 @@ export class RequiredFields {
this.requiredFields = this.form.find(':input[required], input[name*="date_issued"]');
this.requiredFields.change(this.callback)
}

// [hyc-override] Save TinyMCE content to the textarea before checking for required fields
// Important for required fields that are TinyMCE editors
saveTinyMCEContent() {
// Loop through each TinyMCE instance in the form
$(this.form).find('.tinymce').each((index, elem) => {
const id = $(elem).attr('id');
// If the TinyMCE instance exists, save the content
if (id && tinymce.get(id)) {
tinymce.get(id).save();
}
});
}
}
184 changes: 0 additions & 184 deletions app/assets/javascripts/hyrax/save_work/save_work_control.es6

This file was deleted.

2 changes: 1 addition & 1 deletion app/renderers/hyrax/renderers/formatted_text_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_sanitized_string(string)
sanitize(string, tags: allowed_tags, attributes: allowed_attributes)
end

# [hyc-override] Same as attribute renderer override, but without escaping the value
# Same as attribute renderer override, but without escaping the value
def li_value(value)
field_value = find_language(value) || value
auto_link((field_value))
Expand Down

0 comments on commit 2e65d50

Please sign in to comment.