1
wtravel
Koivi in XOOPS 2.2 - anyone?

Does anyone know how to use koivi editor in a module in XOOPS 2.2? I could not find any documentation on this. I could only find something for the 2.0.x versions.

2
zoullou
Re: Koivi in XOOPS 2.2 - anyone?
  • 2005/8/23 18:45

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


You have an exemple in class/xoopseditor/sampleform.inc.php.

I use it like this :
if(!empty($_POST['editor']) || !empty($_COOKIE['editor'])) {
    if(!empty(
$_POST['editor'])) {
        
$editor $_POST['editor'];
    } else {
        
$editor $_COOKIE['editor'];
    }
} else {
    
$editor "";
}
if(!empty(
$editor)){
    
setcookie("editor",$editor);
}
$form->addElement(new XoopsFormSelectEditor($form'editor'$editor));
$options['name'] ='event_desc';
$options['value'] = empty($_REQUEST['message']) ? $desc $_REQUEST['message'];
$form->addElement(new XoopsFormEditor("Description"$editor$options), false);


Cheers

3
wtravel
Re: Koivi in XOOPS 2.2 - anyone?

Thanks a lot! I got it working.


4
wtravel
Re: Koivi in XOOPS 2.2 - anyone?

However, I ran into one more problem. In the solution for the previous XOOPS version we could set the options like this:

$options= array
(
"formatblock","forecolor","hilitecolor","newline",
"undo","redo","separator","cut","copy","paste","separator",
"italic","underline","strikethrough","removeformat","separator","justifyleft",
"justifycenter","justifyright","justifyfull","separator","insertorderedlist",
"insertunorderedlist","indent","outdent","newline","superscript","subscript",
"separator","quote","code","separator","createlink","unlink","separator",
"inserthorizontalrule","createtable","imagemanager","insertimage","imageproperties");


However, this does not seem to have any effect when I select Koivi as editor. I also seem to have a problem switching from one editor to another, so I just used:
$editor "koivi";

...right after the user profile variable.

How can we set the options?

5
phppp
Re: Koivi in XOOPS 2.2 - anyone?
  • 2005/8/23 20:50

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


$options['...'] ='...';
$options['options'] =array
(
"formatblock","forecolor","hilitecolor","newline",
"undo","redo","separator","cut","copy","paste","separator",
"italic","underline","strikethrough","removeformat","separator","justifyleft",
"justifycenter","justifyright","justifyfull","separator","insertorderedlist",
"insertunorderedlist","indent","outdent","newline","superscript","subscript",
"separator","quote","code","separator","createlink","unlink","separator",
"inserthorizontalrule","createtable","imagemanager","insertimage","imageproperties"
);
...

$form->addElement(new XoopsFormEditor("Description"$editor$options), false);


This should work

6
StarShaper
Re: Koivi in XOOPS 2.2 - anyone?
  • 2005/8/24 2:23

  • StarShaper

  • Just popping in

  • Posts: 29

  • Since: 2005/7/25


I would like to use Koivi with code tags. Koivi works fine with XOOPS 2.2.2 except of one issue. If you try to use the code Tag and write for example this piece of code you get some problems.

#include <iostream>


After reloading, Koivi automatically closes iostream. I would be grateful if maybe someone else knows a quick fix for this problem? Otherwise I will have to go through the Koivi Source Code to fix it...

regards
starshaper

Login

Who's Online

237 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 237


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits