Skip to content

HTML to Textile conversion plugin for Redmine

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING.txt
Notifications You must be signed in to change notification settings

Godhart/redmine_conv_htmltotextile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redmine_conv_htmltotextile

is HTML to Textile conversion plugin for Redmine.

Installation

  1. Copy the plugin directory into the vendor/plugins directory (make sure the name is redmine_conv_htmltotextile)
  2. Install hpricot gem: gem install hpricot
  3. Run bundler: bundle install --without development test all other options you usualy provide
  4. Run migration: rake db:migrate:plugins (don't forget to be in the root redmine directory when doing this)
  5. Restart Redmine: touch tmp/restart.txt (don't forget to be in the root redmine directory when doing this)

Usage

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.

Disclaimer

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.

Word of thanks

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

About

HTML to Textile conversion plugin for Redmine

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages