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

Comments

Steve Lockwood’s picture

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>';
Steve Lockwood’s picture

Status: Active » Fixed
OneTwoTait’s picture

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

OneTwoTait’s picture

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

Status: Fixed » Closed (fixed)

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

OneTwoTait’s picture

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.

helpermedia’s picture

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>';
      }