Removed the Module Library, no longer necessary

This commit is contained in:
Nathan Schneider
2025-05-07 22:21:30 -06:00
parent adf155e954
commit 41aeffa81b
17 changed files with 94 additions and 1323 deletions

View File

@ -436,6 +436,8 @@ document.addEventListener('DOMContentLoaded', function() {
// Apply the content to the textarea
textarea.value = content;
// Height adjustment is now handled by the global script
// Store in protocol data
protocol.stages[stageId][componentId][fieldId] = content;
fieldsPopulated++;
@ -467,6 +469,9 @@ document.addEventListener('DOMContentLoaded', function() {
if (previewModeActive) {
markComponentsWithContent();
}
// Dispatch custom event for textarea auto-resize
document.dispatchEvent(new CustomEvent('templateApplied'));
}
// No helper functions needed anymore as we've simplified the approach