3
line 93
file /modules/news/include/storyform.inc.php
$editor = news_getWysiwygForm(_NW_THESCOOP, 'hometext', $hometext, 15, 60, 'hometext_hidden');
$sform->addElement($editor, true);
So the editor is choosen by the function news_getWysiwygForm, take a look to the function
line 187
file /modules/news/include/functions.php
function &news_getWysiwygForm($caption, $name, $value = '', $width = '100%', $height = '400px', $supplemental='')
{
$editor_option = strtolower(news_getmoduleoption('form_options'));
$editor = false;
$editor_configs=array();
$editor_configs['name'] =$name;
$editor_configs['value'] = $value;
$editor_configs['rows'] = 35;
$editor_configs['cols'] = 60;
$editor_configs['width'] = '100%';
$editor_configs['height'] = '350px';
$editor_configs['editor'] = $editor_option;
So the editot, this time is set by news_getmoduleoption, another fuction.
The clue here is check if the user is admin so the editor returned by this function will be the one we want for module admins, and set in configuration the default editor for regular users.
Iam not a programmer, so anyone could help me?
Thks