回复: 如何修改某些模块的编辑器?

作者 sscnboluomi 于 1297651998
http://xoops.org.cn/modules/wfdownloads/singlefile.php?lid=201
修改那个文件啊,太含糊了!
关于SPAW editor
在需要使用WYSIWYG编辑器的地方,以News模块为例:


$sform = new XoopsThemeForm(_NW_SUBMITNEWS, "storyform", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/submit.php');
......
if ( is_readable(XOOPS_ROOT_PATH . "/class/spaw/formspaw.php")) {
include_once XOOPS_ROOT_PATH . "/class/spaw/formspaw.php";
$editor = new XoopsFormSpaw(_AM_EXTEXT, 'bodytext', $bodytext, "100%", '400px');
}else{
$editor = new XoopsFormDhtmlTextArea(_AM_EXTEXT, 'bodytext', $bodytext, 15, 60, 'bodytext_hidden');
}
$sform->addElement($editor, false);
unset($editor);
......

来自: http://xoops.org.cn/newbb/viewtopic.php?topic_id=33436&post_id=81648