public
Description: Integrate the Yahoo Rich Text Editor (http://developer.yahoo.com/yui/editor/) into a Rails application.
Home | Edit | New

Configuration: serving the javascript locally

By default the javascript is served up from yui.yahooapis.com. If you’d prefer to have the javascript served from your app:

  1. Download the editor javascript from http://developer.yahoo.com/yui/editor/
  2. Extract the zip into your public/javascripts directory.
    This will create a folder called yui. To be consistent with the YUI hosted version do the following:
  3. mv yui
  4. mkdir yui
  5. mv yui
  1. Then in your config/yui_editor.yml replace
    javascript_base_uri: //yui.yahooapis.com

    with
    javascript_base_uri: /javascripts/yui
  1. Match the version line with the version that you downloaded. This should match the directory you created above.
    version: ‘2.7.0’
Last edited by larsklevan, Thu Mar 05 06:29:34 -0800 2009
Home | Edit | New
Versions: