Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2005-06-04 16:16:56

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

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

Mary, thanks for the update, works great for me. Anyway, I just updated the plugin a few minutes a go, need to check if all the functions work well, but looks like everything is in place.

Offline

#77 2005-06-05 22:12:19

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

@Jamie:

“…I will del the line in write.js and see what happens..”

Only the forms and page tabs are supposed to, as the write tab automatically handles the wrapping, because of that tab’s unique page structure. If you increase that textarea’s size, the toolbar should follow along.

Offline

#78 2005-06-06 22:25:57

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

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

There’s one additional button I’d like to add and I’m wondering if somsone an help me with it.

I want to add a simple button that outputs: [zz93] including the square brackets. If follow the first part of the guide in the help, and place the one line of code into the custom.js, would that be enough?

Also, what would I edit to enable the img popper plugin to work with the quicktags plugin? I’m looking at the code and I see it there but not sure what to modify.

Thanks for these really useful plguins Mary

Last edited by sekhu (2005-06-06 22:28:57)

Offline

#79 2005-06-06 22:40:27

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

Yes.

Remove the two slashes (“//”) from the front of the line. Put the two slashes in front of the other img button’s line, so you don’t have two image buttons at the same time. They’d both work, but could be confusing to the user.

Offline

#80 2005-06-06 22:51:01

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

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

god I;m dense! thanks for that worked like a charm.

I’ll try the new button thing next :)

Offline

#81 2005-07-22 22:39:29

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

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

Hey nice stuff Mary, like your img_popper..love that one too.

This plugin works nicely in FF 1.0.5 Mac but does not show up in Safari.

Any known fix ?

Update.
Works also in Opera
Version 8.01
Build 2092
Platform MacOS X
System 10.4.2

Thx

Last edited by druzli (2005-07-22 22:45:25)


regards,

Agust

Offline

#82 2005-07-23 02:22:49

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

Thanks for the info, Agust. I’ve only got access to Windows, so obviously I just hope it works for everyone else. :D

Known fixes: nope, as you’re the first to say anything about it. :D

The toolbar just doesn’t appear? I’m looking through the DOM browser support list at quirksmode, and if the list is accurate, it looks like Safari supports all the dom functions I used, so based on that I don’t know why it wouldn’t work. Do you get any JavaScript errors or warnings?

Offline

#83 2005-07-23 07:51:03

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

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

Thanks for the response Mary.

Well to be honest, I,m not the best looking for error but no, I dont see any javascript errors or warnings.

In Safari, I can se that the scripts are loaded in Activity window, but in the source of the “article” index in Textpattern, I dont see anything about your plugin.

If you want, I can sed you the source in a file, just let me know.

And if I can help you further, just ask away :)

PS: Nice registration date you have, only one day sooner than me and about 1270 post ahead !


regards,

Agust

Offline

#84 2005-07-23 15:47:48

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

The plugin source of the page is near the bottom – its self-contained JavaScript. For the article tab there should be 3 ‘script’ lines, 4 for forms and pages.

Offline

#85 2005-07-23 17:28:26

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

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

Yes I can see it there:
<code><script type=“text/javascript” src=“index.php?event=upm_img_popper&amp;js=link_js”></script>
<script id=“write_tab” type=“text/javascript” src=“upm_quicktags/lib/quicktags.js”></script>
<script type=“text/javascript” src=“upm_quicktags/write.js”></script>
<script type=“text/javascript” src=“upm_quicktags/lib/txp.js”></script>
<script type=“text/javascript” src=“upm_quicktags/custom.js”></script></code>


regards,

Agust

Offline

#86 2005-07-24 00:43:03

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

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

Is this now built into TXP? I ask this because when I was updating to the latest revision I deleted all the files but left it activated in the admin area, then did my update before realising it. So I logged back in, and now find that it’s still activated, there are no other files but it’s punching out the quicktags and it displays.

I;m sure it’s nothing impressive, but technically could I keep it running like this without uploading the files themselves?

Cheers

Offline

#87 2005-07-24 00:56:16

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

Woah. If it is I wasn’t told. :D So my guess would be ‘nope’. All that this particular plugin does by itself is include the JavaScript files. Are you certain that its not a matter of your browser having cached them?

Offline

#88 2005-07-24 00:58:01

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

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

eh if it is cached i’ll leave it cached 1t’s possible, but i;m feeling a bit lazy with regards to reinstalling…hmm let me clear the cache then :)

bugger you were right :)

Last edited by sekhu (2005-07-24 00:58:58)

Offline

#89 2005-08-01 02:25:55

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

v.0.4.1

Offline

#90 2005-10-26 20:13:27

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

I want to report something, dont know if it is a bug or if it is “natural” behaviour that cannot be avoided.

I have installed this plug-in.
I use it mainly in this way: I write/paste a big chunk of plain text, and then I add the tags, by selecting a line/block of content (“painting” it) and then clicking in the tag button to surround the <span style=“background: #000; color: #fff;”>selected content</span>.

When I wrap the selected content (by pressing “li” button) with a <code><li></li>, I always get a breakline space.
And that is what I want to avoid.

And while writing this post, I think I have founded how to.
Yes.
And I will share it.

In write.js,, look for this line:
<code>edButtons[edButtons.length] = new edButton(‘qt-li’,‘li’,’ &lt;li&gt;’,’&lt;/li&gt;\n’,‘Item de Listado’);</code>
and remove:
<code>\n</code>

Doing this, when you “paint” the text and want to wrap it with a <code><li></code>, you hit the “li” button, the text is wrapped by <code><li></li></code> but it doesnt add a line break.

Last edited by maniqui (2005-10-27 16:33:49)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB