WYM Editor Helper plugin

Plugin details

WYM Editor Helper is a plugin that makes it dead easy to incorporate the WYM editor into your Rails views.

Websitehttp://www.gorilla-webdesign.be/artikel/42-WYM+on+Rails Repositorysvn://zuurstof.openminds.be/home/kaizer/svn/rails_stuff/plugins/wym_editor_helper Author Benny Degezelle Tags wym, editor LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install svn://zuurstof.openminds.be/home/kaizer/svn/rails_stuff/plugins/wym_editor_helper

Put <%= wym_editor_initialize %> in the view that will host the text editing form.

Prefereably this goes into the HEAD section, to keep your html W3C valid.

I use <%= wym_editor_initialize unless !%w(new create edit update).include?(@controller.action_name) -%> in my layout.

This means the editor will only load when someone is creating or editing something.

In the form, instead of i.e. <%= text_area :article, :content %>, use <%= wym_editor :article, :content %>
OR add a 'wymeditor' class to the textarea, add a 'wymupdate' class to the submit button

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago