TinyMCE File Upload Rails Plugin
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
db/migrate
lib
public/javascripts/tiny_mce/plugins/fupload
tasks
test
.gitignore
MIT-LICENSE
README.md
Rakefile
init.rb
install.rb
uninstall.rb

README.md

TinymceFileupload

That's a plugin for TinyMCE javascript WYSIWYG editor which allows user to upload files via a webform and insert links to that files in the edit area.

NOTE Please use rails3 branch for Rails 3.1. It now has "html_safe" calls.

INSTALLATION

  1. Routing

Add the following line to your config/routes.rb:

map.resources :files, :only => [:create]

  1. Adding fupload button to the tinyMCE panes

Update your config/initializers/mce_options.rb file

a. Add plugin to the plugins list

Replace

:plugins => %w{inlinepopups safari curblyadvimage},

with

:plugins => %w{inlinepopups safari curblyadvimage fupload},

b. Add button to the panel

Add "fupload" to the :theme_advanced_buttonsX array

  1. Migrate the database

Run "rake db:migrate:tinymce_fileupload"

Copyright (c) 2009 Alexey Nayden, sponsored by EvilMartians.ru, released under the MIT license