20
Hi Russtik,
The koivi editor is not a module yet, but a hack. A very great hack, since it runs on open source web browsers
(Another wysiwyg editor is spaw, which only runs on IE. Spaw is a proper module and is integrated in many modules by default)
Most likely koivi will become a proper module in the future and may be integrated with other modules.
For now, it requires a bit of script modifications:
The manual is as follows:
Quote:
1.Copy wysiwyg folder into your XOOPS "class" folder
2.Replace your system_imagemanager.html template with the new one.
3.Follow instructions in docs folder for implement wysiwyg class in modules.
I am a beginner, and it took me a while to get the courage to try it out, but I managed...
1. Copy the "koivieditor class v1.0 FINAL/wysiwyg" folder into your XOOPS "class" folder (which is in the root folder of your XOOPS site)
2. Replace the "xoopsrootfolder/modules/system/templates/system_imagemanager.html" file with the one that is provided with koivi
3. Then I followed the instructions that were given here in this forum thread:
Edit:
modules/news/admin/storyform.inc.php
You must change this code:
echo ""
._AM_INTROTEXT."
n";
xoopsCodeTarea("hometext", 60, 15);
xoopsSmilies("hometext");
echo "
"
._AM_EXTEXT."
n";
xoopsCodeTarea("bodytext", 60, 15, 2);
xoopsSmilies("bodytext");
With this:
echo ""
._AM_INTROTEXT."
n";
//xoopsCodeTarea("hometext", 60, 15);
//xoopsSmilies("hometext");
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";
$wysiwygHomeText= new XoopsFormWysiwygTextArea('', "hometext", $hometext, '100%', '400px','');
echo $wysiwygHomeText->render();
echo "
"
._AM_EXTEXT."
n";
//xoopsCodeTarea("bodytext", 60, 15, 2);
//xoopsSmilies("bodytext");
$wysiwygBodyText= new XoopsFormWysiwygTextArea('', "bodytext", $bodytext, '100%', '400px','');
echo $wysiwygBodyText->render();
After the editing the file, you need to go to the modules in the admin and click on "update" of the news module
This worked for me to get the news and the stories module to edit in wysiwyg
Other modules I did not look into yet, but it must be similarly easy