5
If you want to use the wysiwyg editor
tinyeditor with the module
Pages you have to edit the file modules/pages/admin/index.php
Find the following lines:
case 'tiny' :
if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinytextarea.php")) {
include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinytextarea.php");
$sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3');
$sform-> addElement(new XoopsFormTinyTextArea(array('caption'=> $caption, 'name'=>'page', 'value'=>$page, 'width'=>'100%', 'height'=>'400px'),true));
} else {
$sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3');
$sform-> addElement(new XoopsFormDhtmlTextArea($caption, 'page', $page, 20, 60));
}
break;
and make the following red changes:
case 'tiny' :
if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/[color=CC0000]formtinyeditortextarea.php[/color]")) {
include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/[color=CC0000]formtinyeditortextarea.php[/color]");
$sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3');
$sform-> addElement(new [color=CC0000]XoopsFormTinyeditorTextArea[/color](array('caption'=> $caption, 'name'=>'page', 'value'=>$page, 'width'=>'100%', 'height'=>'400px'),true));
} else {
$sform-> insertBreak( ""._AM_CHANA . _AM_WORDCOUNT . $total_words."" , 'bg3');
$sform-> addElement(new XoopsFormDhtmlTextArea($caption, 'page', $page, 20, 60));
}
break;