mikdiet
mikdiet

Reputation: 10018

Can't get several tiny_mce editors on a page, only one

I use Ruby on Rails 2.3 and gem 'tiny_mce'

Gem uses TinyMCE 3.4

Gem generates script on my page

tinyMCE.init({
  editor_selector : 'mceEditor',
  mode : 'textareas'
});

Next, I have several textareas with class 'mceEditor'. But actually editor appears only at first textarea.

What I need to do?

Upvotes: 1

Views: 69

Answers (1)

Thariama
Thariama

Reputation: 50832

You need to give all of your textareas different ids!

Upvotes: 1

Related Questions