r('submit', function(event) {
              // Ensure all markdown editors have their content synced to the textarea
              editors.forEach((editor, fieldName) => {
                  const textarea = document.querySelector(`textarea[name="${fieldName}"]`);
                  if (textarea) {
                      textarea.value = editor.value();

                      // Temporarily remove required attribute if there's content
                      // This prevents the "not focusable" validation error
