is HTML to Textile conversion plugin for Redmine.
- Copy the plugin directory into the
vendor/plugins
directory (make sure the name is redmine_conv_htmltotextile) - Install hpricot gem:
gem install hpricot
- Run bundler:
bundle install --without development test
all other options you usualy provide - Run migration:
rake db:migrate:plugins
(don't forget to be in the root redmine directory when doing this) - Restart Redmine:
touch tmp/restart.txt
(don't forget to be in the root redmine directory when doing this)
There is no direct usage for this plugin. It's supplement for redmine_aloha_wiki plugin and also could be used by any other plugins for HTML to textile conversion.
It provides 'convert/htmltotextile' controller for AJAX requests and takes following arguments as input:
- content[text] as a text to be converted
- project_id as origin project of wiki page. It's used to distinguish inner and outer wiki links
- id as a wiki page name. It's reserved for further use
Output is a result of conversion in plain text.
Plugin provided "as is" under copyleft license and it'll always be like this.
Plugin is tested only for Redmine v.1.4. There is no guarantee that it would work for other versions of Redmine.
I'm real newbie to Ruby, Rails, Redmine and not doing well with HTML things so you may find some ugly things within code. A good advice is always welcomed.
Thanks to P.J.Lawrence who started redmine_wysiwyg_textile plugin and Alexey Kalmykov who made some corrections as I've heavily used that plugin to get HTML to textile conversion in my redmine_conv_htmltotextile plugin. Actualy I took it's core and did some adjustments.
Stackoverflow people as it's there I found most answers to my questions (thank's to Google but anyway...)
World of opensource