I finally sorted it out by cloning the blocks and deleting the originals.
$tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)));
$tpl->assign('channel_title', htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES));
/*** Editor to use */
/** Comment the old defines
$modversion['config'][20]['name'] = 'form_options';
$modversion['config'][20]['title'] = "_MI_NEWS_FORM_OPTIONS";
$modversion['config'][20]['description'] = '_MI_NEWS_FORM_OPTIONS_DESC';
$modversion['config'][20]['formtype'] = 'select';
$modversion['config'][20]['valuetype'] = 'text';
$modversion['config'][20]['options'] = array(
_MI_NEWS_FORM_DHTML=>'dhtml',
_MI_NEWS_FORM_COMPACT=>'textarea',
_MI_NEWS_FORM_SPAW=>'spaw',
_MI_NEWS_FORM_HTMLAREA=>'htmlarea',
_MI_NEWS_FORM_KOIVI=>'koivi',
_MI_NEWS_FORM_FCK=>'fck',
_MI_NEWS_FORM_TINYEDITOR=>'tinyeditor'
);
$modversion['config'][20]['default'] = 'dhtml';
*/
/*** Editor to use (Xoops 2.3) */
$modversion['config'][20]['name'] = 'form_options';
$modversion['config'][20]['title'] = "_MI_NEWS_FORM_OPTIONS";
$modversion['config'][20]['description'] = '_MI_NEWS_FORM_OPTIONS_DESC';
$modversion['config'][20]['formtype'] = 'select';
$modversion['config'][20]['valuetype'] = 'text';
xoops_load('xoopsEditorHandler');
$modversion['config'][20]['options'] = array_flip(xoopsEditorHandler::getList());
$modversion['config'][20]['default'] = 'dhtmltextarea';
/** Comment the old news_getWysiwygForm function
function &news_getWysiwygForm($caption, $name, $value = '', $width = '100%', $height = '400px', $supplemental='')
{
...
}
*/
/**
* Retreive an editor according to the module's option "form_options"
*/
function &news_getWysiwygForm($caption, $name, $value = '', $rows = 35, $cols = 60, $supplemental='')
{
$editor_configs = array();
$editor_configs['name'] = $name;
$editor_configs['value'] = $value;
$editor_configs['rows'] = $rows ? $rows : 35;
$editor_configs['cols'] = $cols ? $cols : 60;
$editor_configs['width'] = "100%";
$editor_configs['height'] = "400px";
$editor = new XoopsFormEditor($caption, news_getmoduleoption('form_options'), $editor_configs);
return $editor;
}
xoops_load("XoopsLists");
/** ADD-BEGIN */
$this->root_path = XOOPS_ROOT_PATH."/class/xoopseditor";
/** ADD-END */
$_list = XoopsLists::getDirListAsArray($this->root_path.'/');