This line of javascript assigns a WYSIWYG editor to an element with the HTML ID ‘description’.
new nicEditor({fullPanel : true}).panelInstance('description')
The WYSIWYG editor then overrides the textarea.
<textarea
id="description[<?php echo $pid ?>]"
name="description[<?php echo $pid?>]"
</textarea>
But the ID tag changes as it iterates through all of the descriptions. The current $pid of the description is appended to the ID tag. (description1, description2 etc.)
How do you modify the javascript to handle each appended ID name?
new nicEditor({fullPanel : true}).panelInstance('description.???')
It doesn’t look like niEditor supports assigning to classes, you might be better off using TinyMCE with the selector option and assigning the same class to each textarea.