I have installed this module and it's working fine, but I have a question for now:

When I chose "Create content" (page, blog, etc), the RichText editor is turned on by default and I can turn on/off by clicking on the "rich text editor" link on the bottom. That's fine.

But as soon as I submit a comment (reply, etc) it's turned on by default. I still can turn it on by clicking the "rich text editor" link, but it's not turned on by default. Do I have to configure something or it's a bug?

Thank you in advanced.

Comments

fleetcommand’s picture

Erm, I meant "it's turned off by default" when adding a comment :) So is it possible to make it turned on by default for comments? :)

fleetcommand’s picture

Status: Active » Closed (fixed)

Just had to add edit-comment to elements. Sorry for disturbing you :)

Steve Lockwood’s picture

Hi - no worries. You found the answer while I was typing the reply! Here's a detailed reply in case it's useful to anyone else - Steve

By default the textarea element named "edit-body" is turned on automatically. This is controlled in the settings screen admin/settings/tinytinymce where we specify the init scripts for simple mode and advanced mode. In the sections "TinyMCE init script for simple mode:" and "TinyMCE init script for advanced mode:" you will see a line that looks like this:

elements: "edit-body",

To make the comment automatically switched on to TinyMCE, change this line to:

elements: "edit-body, edit-comment",

You can add the IDs of any other textareas that you want switched on also.