Removed the Module Library, no longer necessary
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user