Sha256: 1cb6880f1fdc3d11bd071eabf769e4f6919805ffb8551bd3edcaf6e468a38a0f

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 KB

Contents

Rails 3.2 Integration for TinyMCE
=================================

The `tinymce-rails` gem integrates the [TinyMCE](http://www.tinymce.com/) editor with the Rails 3.2 asset pipeline.


Instructions
------------

**1. Add `tinymce-rails` to your Gemfile**

    gem 'tinymce-rails'

Then run `bundle install`.


**2. Use TinyMCE

Add to your application.js:

    //= require tinymce-jquery

and use TinyMCE in your view:

    <%= text_area_tag :editor, "", :rows => 40, :cols => 120 %>

    <script type="text/javascript">
      $(function() {
        $('textarea').tinymce({
          theme: 'advanced'
        });
      });
    </script>


Custom Plugins & Skins
----------------------

To use custom plugins or skins, simply add the files to your asset load path so that they are locatable at a path beneath `tinymce/plugins/` or `tinymce/themes/advanced/skins/`.

For example, a plugin called `mycustomplugin` could have its main JS file at `app/assets/javascripts/tinymce/plugins/mycustomplugin/editor_plugin.js`.

Any files with a path beginning with `tinymce/` will be automatically precompiled.


Updating
--------

When new versions of TinyMCE are released, simply update the `tinymce-rails` gem to the latest version. There is no need to run any extra rake tasks (apart from `rake assets:precompile`).

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
gnuside-tinymce-rails-3.5.8.3 README.md
locomotive-tinymce-rails-3.5.8.2 README.md
locomotive-tinymce-rails-3.5.8.1 README.md