Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2005-06-03 16:19:11

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

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

#62 2005-06-03 17:12:13

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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.

Offline

#63 2005-06-03 17:35:14

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

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

#64 2005-06-03 19:01:52

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

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

#66 2005-06-04 00:08:29

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] upm_quicktags: Implement Alex King’s Quicktags

woot!!

Offline

#67 2005-06-04 01:52:45

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

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

#69 2005-06-04 03:22:34

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#71 2005-06-04 03:52:12

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#73 2005-06-04 04:55:52

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#75 2005-06-04 15:38:36

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

Board footer

Powered by FluxBB