You could modify the "typesetbuttons" plugin for that, or build your own plugin that listens on the toolbar-hook?
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
You need to escape tags inside the wrap-selected, you need to use single quotes within it, else your browser will interpret the first " as a closing value="" tag, and show the rest als interpreted HTML.
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
You must take care of escaping single quotes occuring inside within single quotes, or you'll have the same "break out of quoting" problem
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Now I had an Idea... In the code we added there are some placeholders called "XXX". Is it possible to enter a kind of variabel-thing so when I push the button in the editor a popup apears wich asks me for the name for that variable. Like the url button does.
Now I had an Idea... In the code we added there are some placeholders called "XXX". Is it possible to enter a kind of variabel-thing so when I push the button in the editor a popup apears wich asks me for the name for that variable. Like the url button does.
Yes, you can do that. It requires javascripting, of course. Have a look at how the URL button does it.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
lordcoffee, when you've got this working the way you want it, could I suggest you write a tutorial with your complete code snippet and post it on the wiki. I think a lot of our users would really want this function. Good work!