Skip to content

Commit

Permalink
tinymce saves on change
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Oct 18, 2024
1 parent 1419870 commit 1f82346
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/assets/javascripts/hyrax/save_work/save_work_control.es6
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ export default class SaveWorkControl {

// sets the metadata indicator to complete/incomplete
validateMetadata() {
// [hyc-override] Update textarea for fields using TinyMCE for rich text editing
this.requiredFields.saveTinyMCEContent()

if (this.requiredFields.areComplete) {
this.requiredMetadata.check()
return true
Expand Down
6 changes: 6 additions & 0 deletions config/tinymce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ rich_text:
- title: "Right"
block: ""
classes: "align-right"
setup: |
function (editor) {
editor.on('change', function () {
tinymce.triggerSave();
});
}
custom:
<<: *default

0 comments on commit 1f82346

Please sign in to comment.