                      if (textarea.value.trim().length > 0 && textarea.hasAttribute('required')) {
                          textarea.setAttribute('data-was-required', 'true');
                          textarea.removeAttribute('required');
                      }
                  }
              });
          });

          // Watch for theme changes and update editor theme
          const observer = new MutationObserver(function(mutations) {
              mutations.forEach(function(mutation) {
          