Use a WYSIWYG editor for textile comments
plugins
3 months ago
Textile Editor Helper plugin
This plugin adds a simple editor to a textarea of your choice. But make sure, you have the Prototype javascript library included (e.g. javascript_include_tag :defaults), or else it won’t work.
1. Installation
ruby script/plugin install http://svn.webtest.wvu.edu/repos/rails/plugins/textile_editor_helper/
2. Copy images and javascript to public folder – Fortunately there exists a rake task, so this is trivial:
rake textile_editor_helper:install
3. View – Replace the textarea-tag that’s responsible for inputing the textiled text with:
Note: textile_editor accepts the same parameters as text_area
4. View (requirement!) – Add the following line to the end of your view-file, or else it won’t work:
Done! This is how it looks like:
You can see the plugin live in action on this site (when you add a new Tip). I added 3 custom buttons to it, so if you need additional functionality, check the link to the homepage of the plugin for more information.
Go here for additional information: http://slateinfo.blogs.wvu.edu/plugins/textile_editor_helper
Back to all Tips

2 Comments
There is a bug in the Textile Toolbar (posted by Soleone, 3 months ago)
For some browsers it does not insert textile, but simply submits the whole Form! meh
test (posted by Anonymous, 3 months ago)