Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Option to Disable TinyMCE Rich Text Editor

Michael Koontz shared this idea 9 months ago
Under Consideration

Hello,

Currently, when you click on the grey box that says "Enable/Disable Rich-Text Editor", it only disables TinyMCE at that time for that article. Upon opening another article TinyMCE is enabled again.

Use case example:

Currently TinyMCE does not support the <i> tags used by FontAwesome. Even if you use the "Source Code" to enter the html for the FontAwesome icons, TinyMCE strips them out once the article is saved.

So in order to add FontAwesome icons to Knowledgebase articles you have to disable TinyMCE and save the article.

However, the problem is that once you re-open the article, TinyMCE will automatically strip the <i> tags and their content from the article. So any html code associated with the FontAwesome icons would be lost.

There should be a way to disable TinyMCE so that it stays disabled until it is enabled again. This would allow for easier editing of articles that need to be saved this way.

Comments (3)

photo
1

Hi there,

Thanks for your suggestion. As an immediate solution, the /assets/js/tinymce directory can be renamed or removed to disable the rich text editor.

It will remain a raw-HTML editor until the directory is restored or appying a new WHMCS feature release.

photo
1

+1 for this.

photo
1

I wanted something cleaner than what John suggested. So here's a nice snippet that disables TinyMCE on email template editing pages. Just add it to your admin template's header.tpl file, right above </head>. This removes class, so TinyMCE never initiates.

    {if $filename eq "configemailtemplates"}

    <script>

    $(function(){

    $('textarea.tinymce').removeClass('tinymce');

    });

    </script>

    {/if}