spohlenz/tinymce-rails — Issue #37: error: $("textarea").tinymce is not a function
Author: dorajistyle
Created: 2012-01-31 13:05:38+00:00
State: open

Hello, Thank you for offer nice gem plugins.
I've got a problem with using it.

I added below in Gemfile.
gem 'tinymce-rails'
And then run bundle install.

Add to my application.js:
//= require tinymce-jquery

These script files loaded well.

But when I tried below code to use tinymce, I got the Error message.

$(function() {
$('textarea').tinymce({
theme: 'advanced'
});
});

$("textarea").tinymce is not a function

How could I fix this problem?

Regards.