anyone know how i could edit this script so that it adds text (bold, italic, etc) to two textareas in the same form

at the moment, it only seems to add the text to the first textarea, and the most descriptive names werent used so im having a hard time figuring this out