Plugins - Textile Editor
Add to favoritesDependency
To use Textile Editor Helper you must be using Prototype. TEH relies on Prototype for the onload event handler.
To use Textile Editor Helper
Directions to get the helper up and running for your install:
- run rake textile_editor_helper:install
- for the textarea(s) that you want to add the TEH toolbar to replace the
text area tag with:
<%= textile_editor 'object', 'field' -%> **just like writing a text area tag, same options**
- at the end of your form put in the following code:
<%= textile_editor_initialize -%> **Important!**
- save your view and check it out
Simple vs. Extended
TEH has a built-in mode to show only a sub-selection of available tags called simple. Currently the ‘simple’ tags are: bold, underline, italic, strikethrough. To create a text area that will only use the ‘simple’ tags create your text area with the following code:
<%= textile_editor 'object', 'field', :simple -%>
To modify Textile Editor Helper
Most of the options that you might want to modify (e.g. access keystroke or whether a tag is available in simple) are found in textile_editor_config.js. Pretty straightforward.
More Info on Textile
To learn more about Textile check out: Textism, http://www.textism.com/tools/textile/index.php & Textile Reference, http://hobix.com/textile/
More Info on slate
slate is the CMS in development at West Virginia University that led to the development of Textile Editor Helper. Learn more at: http://slateinfo.blogs.wvu.edu
License
Textile Editor Helper is released under the MIT license.
Credits
Textile Editor Helper was created by Dave Olsen (Javascript) and Chris Scharf (Ruby/Rails) of West Virginia University Web Services (http://webservices.wvu.edu/)
Inspired by
Patrick Woods, http://www.hakjoon.com/code/38/textile-quicktags-redirect & Alex King, http://alexking.org/projects/js-quicktags
http://slateinfo.blogs.wvu.edu/plugins/textile_editor_helper
http://svn.webtest.wvu.edu/repos/rails/plugins/textile_editor_helper
Rails' (MIT)
Misc. Enhancements

Hello, great plugin, but i noticed an error line 76 of textile-editor.js : if (view == 's') {
I think it must be changed to : if (view == 'simple') {
This modification allows to generate a simple mode editor.