129
I have tried the following hack on file /modules/system/blocks/system_blocks.php but I get a blank page. Ofcourse the hack did specify for ver 2.2.2 but I figured with a little tweak it might work.
function b_system_custom_edit($options) {
// start hack editor
include_once(XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php");
// end hack editor
$ts =& MyTextSanitizer::getInstance();
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$form = new XoopsFormElementTray('', '<br />', 'options');
//original: $form->addElement(new XoopsFormDhtmlTextArea(_MB_SYSTEM_CONTENT, 'options[0]', htmlspecialchars($ts->stripSlashesGPC($options[0]), ENT_QUOTES), 15, 60));
// start hack editor
$theEditor = new XoopsFormWysiwygTextArea('','','', '100%', '400px', '');
$theEditor->setName('options[0]');
$theEditor->setValue(htmlspecialchars($ts->stripSlashesGPC($options[0])));
$form->addElement($theEditor);
// end hack editor
$type_select = new XoopsFormSelect(_MB_SYSTEM_CONTENTTYPE, 'options[1]', $options[1]);
$type_select->addOption('H', _MB_SYSTEM_HTMLBLOCK);
$type_select->addOption('P', _MB_SYSTEM_PHPBLOCK);
$type_select->addOption('S', _MB_SYSTEM_SMILEYBLOCK);
$type_select->addOption('T', _MB_SYSTEM_NOSMILEYBLOCK);
$form->addElement($type_select);
return $form->render();
}
Since it didn't work though does anyone have a solution?