and one last message from me, contradicting all the others... I've edited jquery.jtageditor.js and changed this
if ($.isFunction(eval(button.callBack))) { eval(button.callBack).call(); to this if ($.isFunction(eval(button.callBack))) { eval(button.callBack).call( field ); then add your new callback function to (say) jtageditor/bbcode/bbcode- tags.js liek so { label: "Test callback", accessKey: "", callBack: function ( obj ) { alert( 'got ' + $(obj).attr('name')); }, className: "testCallback" } On Jan 14, 10:32 pm, bennybobw <[EMAIL PROTECTED]> wrote: > I'm trying to extend jTagEditor to add a image dialog with more fields > (source, title, height, width, etc.). The only problem is that I don't > know how to access any of the jTagEditor functions/properties from > within my callback function so that I can insert my string into the > textarea when my dialog is closed. > > The relevant part of the jtag source looks like: > <code> > function tag(button) { > > get(); > > // if it's a function to fire > > if ($.isFunction(eval(button.callBack))) > { > > eval(button.callBack).call(); > > } > etc... > </code> > > Does anyone have experience with this? Thanks. > > -bennybobw