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

Board footer

Powered by FluxBB