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
That might work. I'll tinker with that. How does it work with
multiple instances of the same plugin through? Where I'm using it, I
am going to be pulling data from 2 instances of the plugin. Maybe I
could have two different names... I think that would work.
Although, I would like to know
On Sat, Dec 6, 2008 at 11:53 AM, Brian Ronk [EMAIL PROTECTED] wrote:
That might work. I'll tinker with that. How does it work with
multiple instances of the same plugin through? Where I'm using it, I
am going to be pulling data from 2 instances of the plugin. Maybe I
could have two
It will actually be 2 instances of the plugin on 2 elements: $
('#test').data('bbcode'), and $('#test2').data('bbcode')
Thanks for those links, those will help me figure it out, although it
doesn't look easy :)
On Dec 6, 1:08 pm, Richard D. Worth [EMAIL PROTECTED] wrote:
On Sat, Dec 6, 2008 at
On Sat, Dec 6, 2008 at 2:38 PM, Brian Ronk [EMAIL PROTECTED] wrote:
It will actually be 2 instances of the plugin on 2 elements: $
('#test').data('bbcode'), and $('#test2').data('bbcode')
That's no problem. Each of those elements has their own data store. If you
end up going the widget
I don't think that will work for a few reasons. I have to be able to
see the decoded text in a certain size, thus what I have is something
where you click on the editable area, and it switches to editing.
Plus, I have a few custom bbcodes that are being used, and I didn't
see a way to add them.
How about this jQuery editor:
http://markitup.jaysalvat.com/
it's called markItUp! and uses Html, Textile, Wiki Syntax, Markdown,
BBcode
On 5 dec, 08:27, 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
7 matches
Mail list logo