Maybe it is much more flexible just to add a hook to ./program/include/main.inc?
______________
function rcube_html_editor($mode='')
{
global $RCMAIL, $OUTPUT, $CONFIG;
$hook = $RCMAIL->plugins->exec_hook('hmtl_editor', array('abort' => false));
if($hook['abort'])
return;
_______________
Would be also a starting point to give the flexibility to use another html
editor, such as FCK ...
I think that's the best approach.
Regards,
Roland
----- Original Message -----
From: Roland Liebl
To: Roland Liebl ; [email protected]
Sent: Tuesday, August 11, 2009 11:26 AM
Subject: Re: [RCD] Configurable TinyMCE Toolbar
Sorry, there was a small bug in main.inc#line 1396 ...
----- Original Message -----
From: Roland Liebl
To: [email protected]
Sent: Tuesday, August 11, 2009 10:51 AM
Subject: [RCD] Configurable TinyMCE Toolbar
Hi devs,
I'm working on a plugin which allows the Admin to configure the TinyMCE
toolbar
without hacking in editor.js. It also allows to enable/disable features
domain/user based.
The reasons why I need this plugin are:
#1 Editor width is too large when RoundCube is embedded in frameset.
#2 I'd like to restrict some features (media, spellchecker) domein/user
based
I don't get it working without patching two files:
#1 ,/program/include/main.inc
... see function rcube_html_editor
#2 ./porgram/js/editor.js
... see function rcmail_editor_init
Attached files are based on trunk r2852. Hope you will commit them to trunk.
Regards,
Roland
----------------------------------------------------------------------------
_______________________________________________
List info: http://lists.roundcube.net/dev/
_______________________________________________
List info: http://lists.roundcube.net/dev/