Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
First at all, thanks for this Plugin, it’s a great help for clients that don’t have the time or just don’t want to learn how textile works. The only function that I wish to change is the image insert function ‘cause is not so friendly and useful for novices.
I guess that could be a good point to replace the prompt calling for the script to open upm_img_popper but after a few minutes trying to know how to hack this, I decide it to post my inquietude here.
Is this possible?
Where to start?
Thx in advance
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
duchamp,
Personally, I comment out the insert image function in the write.js and use the upm_img_popper to insert the images.
Refresh Dallas and other Refreshing Cities.
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
I think that’s a good option but could be nice to have every function into the same area.
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
Just a tip for Spanish users:
if you would like to change the dictionary and use the “Real Academia Española” instead of dictionary.reference.com just open quicktags.js and change the URL on line #408 to this:
window.open(‘http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2&TIPO_BUS=3&LEMA=’ + escape(word));
Hope this will be useful for someone!
Last edited by duchamp (2005-06-03 19:03:32)
Offline
#65 2005-06-03 23:36:17
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
duchamp: if you can wait maybe a day, I’ll tie in upm_img_popper officially. Meaning you’ll have another image insert button option. Obviously, I’ll have it commented out by default, but it will be there. :)
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
woot!!
Refresh Dallas and other Refreshing Cities.
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
Lovely!
Offline
#68 2005-06-04 02:06:26
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
Look at that, not even a day. v.0.4 is here.
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
Is it missing the edButton image “hook” on the backend? it doesn’t seem to want to grab my image button for some reason. I have tried both old and new end string for that line. There’s one less empty quote in the new commented out version.
new:
edButtons[edButtons.length] = new edImgButton(‘qt-img-popper’,‘img.gif’,’‘,’‘,‘Image’); // special
old:
edButtons[edButtons.length] = new edButton(‘qt-img-popper’,‘img’,’‘,‘Image’); // special
Thanks for the update
:)Offline
#70 2005-06-04 03:43:17
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
Whoops, good catch Jamie. Yeah, the less set of quotes was why it wasn’t working. I updated the file.
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
Hmm
I am using:
edButtons[edButtons.length] = new edImgButton(‘qt-img-popper’,‘img.gif’,’‘,’‘,‘Image’); // special
and I have cleared my cache and it’s still not hooking into and grabbing img.gif for some reason.
I get a big ugly grey button that has “undefined” printed on it.
No biggie, but I don’t get it.
(withouth the “smart quotes”) :)
Last edited by soulship (2005-06-04 03:52:59)
Offline
#72 2005-06-04 04:12:55
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
edImgButtons[edImgButtons.length] = new edImgButton('qt-img-popper','img.gif','','','Image'); // special
You forgot “Img” in a couple places. :)
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
DOH! 
It must be late. The images are working fine now, but width attribute is ignored after I have it working. I have it down to the one line. As soon as I uncomment the imgpop line with the edImgButtons in place the resizing fails. I comment it out and fresh reload and the buttons float left like they are supposed to. This loads before rss_admin resize, so usually this gets built and then the area gets resized and the buttons regroup after rob’s plugin kicks in. The way it’s working now is they fail to “regroup” after the admin re-sizing takes place.
Again, nothing life threatening, just different behavior pattern.
Thanks! Me tired now.
Last edited by soulship (2005-06-04 04:56:34)
Offline
#74 2005-06-04 05:20:10
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
“..but width attribute is ignored… “
That shouldn’t have changed at all, since that area wasn’t touched. It might be that now we’re running into plugin conflict, but of course I can’t be certain about that.
So how exactly are you merging the two with regard to width? Are you keeping the “toolbar width” line in your config files? Just so you know, it can be safely removed from all three files.
If that’s not helping, tomorrow I’ll put the two plugins together to see what happens and see if I can figure it out.
Offline
Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags
Well I don’t know….. I have had admin resize running since the day rob released it. I have change the write.js to a generous 690px (same as before). I will del the line in write.js and see what happens. Like I said it functions correctly until I uncomment the new upm_impop line that I added last night and then it suddenly won’t resize to the 690px.
Offline