I may be wrong here, but it seems like the issue is that your copyFrom
variable doesn’t have an up-to-date list of all the textareas on the page. Looking at the code that gets generated, your textareas don’t have the copyFrom class on them, so how will the code know what element to get the values from?