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

Many editors on page, how to target based on container div?

Support forum for WYMeditor.

Many editors on page, how to target based on container div?

Postby tkambler on Mon May 04, 2009 8:28 pm

I have several WymEditors on a page... I know that I can get their content according to their indexes.... $.wymeditors(0).xhtml();

But what if I don't know their indexes? What if I want to get the content from an editor in a specific div? How would you do this?

Thanks for your help!

Tim
tkambler
 
Posts: 2
Joined: Mon May 04, 2009 6:45 pm

Re: Many editors on page, how to target based on container div?

Postby mr_lundis on Wed Jun 03, 2009 6:49 pm

Hi!
I think that the easiest way of doing this would be to attach the editor instance to it's target text-area/container using jQuery.data() on editor initialization.

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 3 guests