Remove "rich text editor" link.

taite11 - December 11, 2008 - 21:44
Project:Tiny Tiny MCE
Version:6.x-1.9
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is there an option to remove the "rich text editor" link? I want the editor always there.

#1

Steve Lockwood - December 12, 2008 - 18:18

Sorry, but I haven't written that feature in! I will consider it for a future version.

For now, you would have to modify the module itself - just comment out lines 217 and 218:

      $pos = strrpos($out, '</div>');
      $out = substr($out, 0, $pos).'<div class="toggletinymce"><a href="javascript:toggletinyMCE(\''.$id.'\')">'.t('rich text editor').'</a>'.$pbrk.' </div></div>';

becomes
      // $pos = strrpos($out, '</div>');
      // $out = substr($out, 0, $pos).'<div class="toggletinymce"><a href="javascript:toggletinyMCE(\''.$id.'\')">'.t('rich text editor').'</a>'.$pbrk.' </div></div>';

#2

Steve Lockwood - December 12, 2008 - 18:18
Status:active» fixed

#3

taite11 - December 12, 2008 - 18:25

Thanks. That will do it.
They were lines 180 and 181 on mine.

#4

taite11 - December 15, 2008 - 21:36

Now for users with permission to use the advanced mode, there is no editor... Is that related to this change?

#5

System Message - December 29, 2008 - 21:40
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#6

taite11 - January 3, 2009 - 19:10

Actually, it doesn't seem to be related. I removed the comments and users with access to advanced mode still don't see any editor bar.

#7

Helpermedia - June 7, 2009 - 17:39

If this feature will be added, it would be nice if it depends on a permission.

For example:

      if (user_access('toggle tinymce')) {
        $pos = strrpos($out, '</div>');
        $out = substr($out, 0, $pos).'<div class="toggletinymce"><a href="javascript:toggletinyMCE(\''.$id.'\')">'.t('rich text editor').'</a>'.$pbrk.' </div></div>';
      }

 
 

Drupal is a registered trademark of Dries Buytaert.