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

Clear editor contents after submit

Support forum for WYMeditor.

Clear editor contents after submit

Postby avido on Mon Mar 22, 2010 3:45 pm

Hi There,

Is there a default fn for clearing the wymeditor contents after (ajax) submit.?
avido
 
Posts: 1
Joined: Mon Mar 22, 2010 3:44 pm

Re: Clear editor contents after submit

Postby mr_lundis on Thu Apr 01, 2010 11:46 am

This will do the trick:

Code: Select all
var wym = $.wymeditors(0);
wym.html("");


Cheers! ;)
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest