larsklevan / yui_editor

Integrate the Yahoo Rich Text Editor (http://developer.yahoo.com/yui/editor/) into a Rails application.

This URL has Read+Write access

yui_editor / install.rb
100644 11 lines (7 sloc) 0.319 kb
1
2
3
4
5
6
7
8
9
10
11
require 'erb'
 
config = File.dirname(__FILE__) + '/../../../config/yui_editor.yml'
 
unless File.exist? config
  config_template = IO.read(File.dirname(__FILE__) + '/yui_editor.yml.tpl')
  File.open(config, 'w') { |f| f << ERB.new(config_template).result }
end
 
puts IO.read(File.join(File.dirname(__FILE__), 'README'))