攻略: 如何在XOOPS 2.2.2中启用Koivi Wysiwyg编辑器
发布者: Rha7dotCom于2005/9/26 6:54:20 12238次阅读大家好!这是一个经久不衰的问题。如何在Xoops 2.2.2中启用Koivi编辑器,这里是如何在自定义块编辑中启用Koivi编辑器,你可以从这里得到启示,并在其他位置实现它,祝你好运!
==== 攻略 ====================================
在 /modules/system/blocks/system_blocks.php
大约在第56行,你会找到以下行
$form->addElement(new XoopsFormDhtmlTextArea(_MB_SYSTEM_CONTENT, 'options[0]', htmlspecialchars($ts->stripSlashesGPC($options[0]), ENT_QUOTES), 15, 60));
将其更改为
$theEditor = new XoopsFormWysiwygTextArea(array());
$theEditor->setName('options[0]');
$form->addElement($theEditor);
================================================
这就差不多完成了。
祝你好运!
Conrad Bildstein
管理员
Rha7.Com网站开发与设计