Jump to content

Disable TinyMCE in certain textareas


sgrayban

Recommended Posts

I found a bug that when you reply to a support ticket the email isn't being sent correctly when TinyMCE is enabled.

 

So far the only way I see around this was to disable the editor

 

tinyMCE.init({
mode : "none"
....

 

I looked through the TinyMCE docs and I found 2 ways to disable it via the init.

 

class="mceNoEditor"
mce_editable="false"

 

The first one is suppose to be the new way to do this when you set the mode to

 

tinyMCE.init({
...
editor_deselector : "mceNoEditor"

 

Then you add in the textarea

class="mceNoEditor"

 

See http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/editor_deselector

 

The second one is a old way to do it and they suggest you not use it...

 

tinyMCE.init({
...
textarea_trigger : "mce_editable"

 

See http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/textarea_trigger

 

Neither one works and I even downloaded and installed the new version of TinyMCE. WHMCS uses a version that is almost 3 years old.

 

Anyone found a solution to this ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated