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 |
Jump to:
Description
Is there an option to remove the "rich text editor" link? I want the editor always there.

#1
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
#3
Thanks. That will do it.
They were lines 180 and 181 on mine.
#4
Now for users with permission to use the advanced mode, there is no editor... Is that related to this change?
#5
Automatically closed -- issue fixed for two weeks with no activity.
#6
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
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>';
}