Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-04-05 03:36:38

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

hak_textile_tags

This plugin will create a formating bar that will insert textile formating code in the textarea. Its based on the quicktags used by wordpress.

get it here

Changelog

ver 0.1.1 – release 10-29-05

  • Fixed a bug with Opera. All are encouraged to upgrade.

Last edited by hakjoon (2005-10-29 22:53:58)


Shoving is the answer – pusher robot

Offline

#2 2005-04-05 09:41:28

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: hak_textile_tags

GREAT !!!

Thx a lot Hakjoon, my dream has finallly come true :)

I’ll add it to textpattern.org, test it and report here :)


.: Retired :.

Offline

#3 2005-04-05 10:17:53

webicus
New Member
From: Wuppertal, Germany
Registered: 2004-02-24
Posts: 7

Re: hak_textile_tags

Nice. Can it be used also for the admin-backend without hacking or is it for comments only?

Offline

#4 2005-04-05 12:33:21

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_textile_tags

The plan is to make it work on the admin side also. Admin plugins weren’t around when I started working on thsi and I haven’t had the time to look into the scripting needed to modify the write tab although it is in the works.

more info here

and for and admin side quicktags plugin in the works (not textile)


Shoving is the answer – pusher robot

Offline

#5 2005-04-05 13:32:56

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,249
Website

Re: hak_textile_tags

Looks Good. Thanks for that.

It doesn’t seem very difficult to modify to use MarkDown instead of Textile for those who might need that (me, for East Asian Languages).

One small problem – I have TXP set to disallow user images in comments, but the [img] button does show up however in the toolbar. I can hide it through the stylesheet, that is not a problem. It might be good if the plugin did consider that as well.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#6 2005-04-05 13:46:45

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_textile_tags

Edit the plugin and look for this line

<pre>

theButtons[theButtons.length] = new edButton(‘ed_image’ ,‘img’ ,’‘ ,’‘ ,-1 ); // special case

</pre>

If you comment that out it will hide the image button. I’m hoping to extend the options to allow the user to set which buttons to show.

And you’re right modifying it for markdown would be pretty easy.

Last edited by hakjoon (2005-04-05 13:49:33)


Shoving is the answer – pusher robot

Offline

#7 2005-04-08 02:29:10

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: hak_textile_tags

Can you add a class for the “close tags” button?

Thanks and nice plugin.


bludrop studios .::. Creative Expression

Offline

#8 2005-04-08 02:36:30

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_textile_tags

The Close Tags button currently has 2 classes “ed_button” which all buttons share and “ed_close” which is exclusive to the close button.

I ported this to the admin side as well and I am working on making it so you can pass what buttons you want to the public plugin.

The admin portion works right now with the same functionality currently present, if anyone wants that before I add the other options let me know and I will release it.


Shoving is the answer – pusher robot

Offline

#9 2005-06-03 03:30:10

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

Re: hak_textile_tags

How did I miss this? Thanks Hakjoon!

Offline

#10 2005-06-03 13:01:26

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_textile_tags

Just to update everyone. I have kind of scrapped the idea of porting this to an admin plugin. I’ve decided to just port the textile implementation to upm_quicktags and there is an initial version available already. I figured 2 admin side quicktags style plugins were not really needed.

I have a couple enhancements I want to make to this plugin for a rev .2, like checking preferences to see if images are allowed, and maybe making it so that you can hide the “/” and the close tags button. Maybe make close tags run on submit so the user doesn’t have to worry about it.


Shoving is the answer – pusher robot

Offline

#11 2005-06-03 14:35:06

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

Re: hak_textile_tags

“Maybe make close tags run on submit so the user doesn’t have to worry about it.”

That’s a good idea.

Offline

#12 2005-10-29 16:36:31

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

Re: hak_textile_tags

This plugin works funny with Opera. With Opera tags “multiply” so that every one of them shows three to four times.

I noticed that on http://www.hakjoon.com/ it works just fine with Opera too but I have this same problem on several different blogs so wonder if I´m doing something terrible wrong?

Last edited by -P- (2005-10-29 16:49:59)

Offline

Board footer

Powered by FluxBB