You are not logged in.
This plugin will create a formating bar that will insert textile formating code in the textarea. Its based on the quicktags used by wordpress.
ver 0.1.1 – release 10-29-05
Last edited by hakjoon (2005-10-29 22:53:58)
Shoving is the answer – pusher robot
Offline
Nice. Can it be used also for the admin-backend without hacking or is it for comments only?
Offline
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
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.
Offline
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
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
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