diff --git a/share/static/js/util.js b/share/static/js/util.js index 352fa09564..c078f5fda0 100644 --- a/share/static/js/util.js +++ b/share/static/js/util.js @@ -1021,6 +1021,14 @@ document.addEventListener("htmx:load", function() { form.addClass('rt-form-submitted'); }); }); + + document.body.addEventListener('htmx:configRequest', function(evt) { + for ( const param in evt.detail.parameters ) { + if ( evt.detail.parameters[param + 'Type'] === 'text/html' && CKEDITOR.instances[param] ) { + evt.detail.parameters[param] = CKEDITOR.instances[param].getData(); + } + } + }); }); function filterSearchResults () {