spohlenz/tinymce-rails — Issue #42: Multiple Instance on same page
Author: nazarhussain
Created: 2012-02-20 21:54:11+00:00
State: open

Hi, Your gem is great in reference to including the tinnyMCE,

I was having an issue with your current version `3.4.8`, I want to have multiple tinnyMCE instances on the same page.

I tried it out as:

````
$('textarea.editor').tinymce({
theme:'simple'
});
````

This makes all textareas with editor available but when i post the form for each editor new text does not posted.

if i use it like

````
$("textarea.editor").live('focus', function () {
$(this).tinymce({
theme:'simple'
});
});
````

Every time i focus on any of the text-area, only the first text-area in the DOM is converted into the editor.

Why is i am facing such a behavior?