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

Problems of instances

Support forum for WYMeditor.

Problems of instances

Postby lexus on Wed Apr 23, 2008 3:57 am

Hello Folks,

First of all, what a wonderful extension.
I have been struggling with encoding but now i got it work.

I have a bigger problem, i tried to pull data from ajax, but since there is not a way to update the currrent editor, i had no choice but to create new editor for each AJAX call

Code: Select all
jQuery(function() {
jQuery(".wymeditor").wymeditor({
html: \''.$area.'\'});
});



Is there any way to remove the oldest editor or just to update the current editor

I have even tried to remove the class but i did not work neither.
Code: Select all
('$(".wymeditor").remove();'


Thanks for you enlighment

F
lexus
 
Posts: 1
Joined: Wed Apr 23, 2008 3:48 am

Re: Problems of instances

Postby jfh on Tue Apr 29, 2008 8:12 pm

Actually you can update the editor by using html():
http://trac.wymeditor.org/trac/wiki/0.4/API#htmlsHtml
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests