Forum closed. New forum available at http://community.wymeditor.org/

update HTML back to textarea field

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

update HTML back to textarea field

Postby evansnd on Mon Nov 08, 2010 11:48 am

Hi I have a Wym editor connected to a text area.
My problem is that the html content is not updated back to the field untill the HTML buttono is pressed.
Is this by design? Is there an option to have the datawritten to the text area automatically?
Alternatively, can I achieve this with javascript ?

Thanks,

<script type="text/javascript">
jQuery(document).ready(function()
{
jQuery('#Content').wymeditor();
});
</script>
evansnd
 
Posts: 1
Joined: Mon Nov 08, 2010 11:41 am

Re: update HTML back to textarea field

Postby marijn on Wed Nov 17, 2010 12:38 pm

Hi evansnd,

I suppose this question belongs in the support forum;-)

Anyway, you can update the HTML by invoking:
Code: Select all
var myEditorIndex = 0; // the index of the editor you wish to update. If you have only one editor this will be 0.
jQuery.wymeditors(myEditorIndex).update();


Good luck,

Marijn
marijn
 
Posts: 1
Joined: Wed Nov 17, 2010 12:26 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest