Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2005-12-28 23:29:02

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

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

I need a little help with this:

each time that I edit a post and modify some text with some paragraphs and a subtitle, for example:

<code>
<h2>This is a subtitle</h2>
<p>This is a text into a paragraph</p>
<p>This is another text into a paragraph</p>
</code>
<br />
after saving the post, the source code is modified to this:
<br />
<code>
<p><h2>This is a subtitle</h2></p>
<p>This is a text into a paragraph</p>
<p>This is another text into a paragraph</p>
</code>
<br />
and ofcourse I don’t want that paragraphs closing the subtitle tags!
Is this a trouble originated by the quicktags editor or by Textpattern itself?

How to solve this?

Offline

#122 2005-12-29 06:26:09

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

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

Turn off Textile: admin > preferences > Use Textile > Leave text untouched

Textpattern saves the Textile setting per post, so you’ll need to go back and manually change this setting for each (under Advanced Preferences), or run a fast and simple SQL query, via a tool like phpMyAdmin, or the Txp plugin, rss_admin_db_manager:

update textpattern set textile_body = '0', textile_excerpt = '0'

Offline

#123 2005-12-29 12:37:46

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

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

Thanks Mary.
Yes, I know that. I think that I’m trying to do something like a miracle! :P
I was trying to leave Textile untouched ‘cause when you paste a plain text into the Textarea textile close everything between <code><p></code> and <code></p></code>, that’s nice! but when I realise that selecting a piece of that text and clicking H2 in Quicktags the H2s is still inside the paragraph I started to look for a solution.
As you said turning off Textile solves that, but each paragraph must to be closed with <code><p></p></code> Tags, and its a little tedious when you have a text with a lot of paragraphs!

I know, I know … magic it’s not possible and I must to take a decission: Use Textile or not to use …
well, considering the site is for a friend and based on my own experience I will try to teach him to use Textile.

Thx

Last edited by duchamp (2005-12-29 12:38:53)

Offline

#124 2005-12-29 17:17:34

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

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

If you’re just entering an h2 header, use Textile.

h2. This is a subtitle

?

Edit: oh and did you see that there is a Textile add-on? There’s also a quick list of Textile syntax examples on the left-hand side of the write tab, which covers most commonly used markup.

Last edited by Mary (2005-12-29 17:19:32)

Offline

#125 2005-12-29 17:56:13

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

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

> mary wrote:

> If you’re just entering an h2 header, use Textile.

h2. This is a subtitle

?

Edit: oh and did you see that there is a Textile add-on? There’s also a quick list of Textile syntax examples on the left-hand side of the write tab, which covers most commonly used markup.

Well, Im working on a friend’s site and he’s who is trying to use the editor (or at least Textile).
I didn’t see the Textile Add-on but going to try it right now!
Thanks once again!

Offline

#126 2005-12-29 19:18:11

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

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

The Textile Add-on Works great!

Another Question:

as I’m using the IMG Button to open upm_img_popper I wish to hide the Insert Image text (between Textile Help and Advanced Options), how can I do it? (while write this Im trying to find the answer inside the Plugin but it’s not a short code! :-( )

Thx

Offline

#127 2005-12-29 20:56:32

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

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

There isn’t presently a built-in way to hide the link, I’m afraid.

Edit the plugin code, and change this line:
link.appendChild(a);

to this:
//link.appendChild(a);

Offline

#128 2005-12-29 21:48:49

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

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

Oh That’s what I wanted!
Also I commented this:

<code>//link.appendChild(help);</code>

Thanks a ton!

Offline

#129 2006-01-18 16:52:18

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

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

Quick question. I am in the midst of reformatting/redesigning my web space and am collecting all of the plugins I used to have – including upm_quicktags which i got from the archived collection of all of Mary’s plugins. In the readme it says to

Copy all the text from upm_quicktags.txt, and paste it into the “Install plugin” box and click “Upload”.

However there is no upm_quicktags.txt in the archive, only upm_quicktags.php. I tried to install all of the code in upm_quicktags.php but get an error. I’m geussing because the information in that file is straight up code and not the usual hash that I’ve seen when installing textpattern plugins. Am i missing something? I can’t for the life of me remember what I did last time.

Any help would be appreciated with gratitude.

Last edited by The Human Museum (2006-01-18 16:52:43)


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#130 2006-01-18 16:55:15

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

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

That is the uncomplied version. Here is a link to Mary’s plugin archive

Offline

#131 2006-01-18 17:03:28

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

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

Thank you very much!


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#132 2006-04-21 09:04:58

-P-
Member
From: Finland
Registered: 2005-09-10
Posts: 211

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

Niconemo wrote:

<blockquote> Thank you for this plugin Mary (all your plugins are great !).

I see that the link insertion is still in xhtml, there is no textile button for that (or if I missed it, I apologize and please ignore this message). As I’m using this plugin almost for educational purpose (“Hey : click and see how textile is simple”) I won’t use the default xhtml button.

I hope there will be a textile button in a next version. Meanwhile, I’ve add this incomplete (the link as to be pasted) but textile-friendly button :

<code>
edButtons[edButtons.length] = new edButton(‘qt-quote’,‘Link’,’\u0021’,’\u0021\u003ahttp\u003a\u002f\u002fpaste-your-link-here.com’,‘Textile link’);
</code>
</blockquote>

Hi! Is there any workaround to this yet? I´m using this great plugin with texttile add on since I find it easier for people to learn only one method when using mark up and I´ve noticed that it really is more likely that authors are able to write valid code with texttile.

And another question, I´d like to add a custom code, <code><br /></code>.

Offline

Board footer

Powered by FluxBB