You could store the bbcode in the element's jQuery data store:

$("#test").data("bbcode", "...");

and you can get it back out by

var bbcode = $("#test").data("bbcode");

See http://docs.jquery.com/Core/data for more info.

Please let me know if your question goes further into how to make your
plugin accept a method call that would then return this data.

- Richard

On Fri, Dec 5, 2008 at 2:27 AM, Brian Ronk <[EMAIL PROTECTED]> wrote:

>
> I'm making an edit in place plugin, and am running into an issue,
> mainly because I'm not sure how to do it.  The data I am working with
> is bbcode, so what is seen on screen (non editing) is not bbcode, but
> it decoded.  I would like to be able to return the bbcode to work with
> it in another area.  I'm just not sure how to do that.
>
> What I'd like to be able to do is to initialize it: $('#test').bbcode
> ();  and then be able to call it again (or something) to get the
> actual bbcode out.  So, something like $('#test').bbcode('code');  or $
> ('#test').showcode();
>
> It basically works right now, except for the returning data.  I'm just
> not sure on how to procede to do that.

Reply via email to