diff --git a/README b/README index d05805f..f55caa8 100644 --- a/README +++ b/README @@ -18,6 +18,9 @@ Sample usage: Basic install: ./script/plugin install http://svn.underpantsgnome.com/fckeditor_on_rails + + Drop a current copy of FCKeditor into public/fckeditor and setup whichever + method below you are using appable_plugins info: http://wiki.pluginaweek.org/Appable_plugins diff --git a/install.rb b/install.rb new file mode 100644 index 0000000..cb134db --- /dev/null +++ b/install.rb @@ -0,0 +1,11 @@ +require 'fileutils' + +FileUtils.ln_s( + File.join(File.dirname(__FILE__), 'test', 'fckeditor_controller_test.rb'), + File.join(File.dirname(__FILE__), '..', '..', 'test', 'functional', + 'fckeditor_controller_test.rb') +) rescue puts <<-EOM +Unable to link the functional test, if you want to include fckeditor_on_rails +in your testing copy test/functional/fckeditor_controller_test.rb from the +plugin directory into your app +EOM diff --git a/test/files/rails.png b/test/files/rails.png new file mode 100644 index 0000000..b8441f1 Binary files /dev/null and b/test/files/rails.png differ diff --git a/uninstall.rb b/uninstall.rb new file mode 100644 index 0000000..8746c74 --- /dev/null +++ b/uninstall.rb @@ -0,0 +1,7 @@ +require 'fileutils' + +file_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test', + 'functional', 'fckeditor_controller_test.rb')) + +FileUtils.rm(file_path) rescue "Unable to remove #{file_path}" if + File.exist?(file_path)