Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
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
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.
and for and admin side quicktags plugin in the works (not textile)
Shoving is the answer – pusher robot
Offline
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
phiw13 on Codeberg
Offline
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
Re: hak_textile_tags
Can you add a class for the “close tags” button?
Thanks and nice plugin.
bludrop studios .::. Creative Expression
Offline
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
Offline
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
Re: hak_textile_tags
That’s so weird. I got it to happen on my site by creating a copy of your comments page Let me see if I can figure out what is causing this.
Shoving is the answer – pusher robot
Offline
Re: hak_textile_tags
And in more bizarre news the problem seems to be that if you have any images on the page Opera runs the onLoad event twice. This just makes no sense, but you’ll notice it happens on this page with an image
I’m going to try and see if maybe it’s the method I’m using to register the event and hopefully find a way around it. In the meantime if this is really causing a problem you could try to call all the images in your comments popup through the style sheet. That seems to not generate the double call to onLoad.
I hate browser bugs.
Shoving is the answer – pusher robot
Offline
#15 2005-10-29 20:20:18
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: hak_textile_tags
I don´t think it is only ´cause of images… or well, same happens here and all the images are called from stylesheet except default avatar.
(note, that url is going to be valid only till some time at sunday, it´s test url before final release)
I did comment out img -tag from plugin. But I tested also with the tag and same weird behaviour :D
And yes, I do hate browser bugs soooooo much. JUST when I though site is about ready, looks decent with Mozilla, FF and IE, I went and checked the whole thing with Opera and… well.
I did notice other strange thing Opera also does, it loses scrollbar from comments popup. But that of course is a different issue.
Last edited by -P- (2005-10-29 20:56:27)
Offline