Textile Help

by john on February 15, 2003

I’m trying out Brad Choate’s MT-Textile plugin and I must say I’m struggling a bit with it – I’m used to just clicking those buttons to add formatting, and part of me thinks that instead of using this plugin I could simply add a few more buttons for some frequently used tags.

However, I’m giving it a try. Since I’m new to Textile I coded up a little helper app in the form of a simple tooltip.

Here are the steps I took:


You only need to edit one file, which is /your_path_to_mt/templ/cms/edit_entry.tmpl

Search for the section that looks like:

<script language=”javascript”> if (document.selection) { … … } </script>

Immediatly after that insert:

To insert an image:
!imageurl!

To define an acronym:
ABC(Always Be Closing) “>Textile Help

That will create a link called “Textile Help” right below the html edit buttons that will give you a quick Textile usage guide when you mouse over the link.

Note that the ability to do multiline tooltips via the title attribute only works in IE, but since I’m using IE currently to post new entries (mostly because of ieSpell) this works for me. There are other cross-browser approaches that would work just fine.

[UPDATE] Mouse over this to see it work:
To insert an image:
!imageurl!
To define an acronym:
ABC(Always Be Closing) “>Textile Help

{ 4 comments }

Brad Choate February 15, 2003 at 10:07 am

There’s also a little manual page available if you click on the ‘?’ link next to the ‘Text Formatting’ label on the entry edit/compose screen.

Scott Chaffin February 15, 2003 at 11:14 am

Elegant!

The Fat Guy February 15, 2003 at 11:38 am

Last Geek-out for the day

I’ve had all this hot, new MT Textilism stuff rummaging around in my brain for a couple of days. John’s

Herbert February 15, 2003 at 12:02 pm

Hello,
I’m just started with Movable Type. I found at your entries the line “List Google related articles (in-lin)” – great! 🙂
How can I do that in MT? Maybe you have a link for me? Thanx a lot!
Greetings from Germany (you know – a country in the “Old Europe” 😉 )!
Herbert

Previous post:

Next post: