Home: WYSIWYG Forums: WYSIWYG Editor Discussion:
Edited content from 2nd editor lost when posted


Apr 4, 2005, 7:41 AM

Views: 32366
Edited content from 2nd editor lost when posted

Trying to have 2 htmlArea3's on one page but I'm finding that the edited content from the 2nd htmlArea3 textarea is lost when posted, $HTTP_POST_VARS[<textarea_name>] returns the original content. I've tried swapping around the textareas and it's always the first one works and the one below doesn't.

The following script was causing a javascript error, I think it should be used for htmlarea2 but not 3, so I've removed it, but still the content from the 2nd htmlarea is not posted.

<script language="JavaScript1.2" defer>
//fieldname2="products_off_page_text[' . $languages[$i]['id'] . ']'";
editor_generate('products_off_page_text[<?php echo $languages[$i]['id']; ?>]');

Any ideas please.

(This post was edited by NickW on Apr 5, 2005, 2:52 AM)