Hacks

How to Enable Koivi Wysiwyg Editor in XOOPS 2.2.2

Rha7dotCom  26-Sep-2005 01:59 10885 Reads   22 Comment(s) 
Hi! This is a so much asked question. How to enable the Koivi Editor in Xoops 2.2.2, Well here is how to enable the Koivi Editor in custom block editing, you can get the idea from here to implement it in other places, good luck!


==== HACK ====================================
In /modules/system/blocks/system_blocks.php
around line 56, you will find the following line:

$form->addElement(new XoopsFormDhtmlTextArea(_MB_SYSTEM_CONTENT, 'options[0]', htmlspecialchars($ts->stripSlashesGPC($options[0]), ENT_QUOTES), 15, 60));


Change it to:

$theEditor = new XoopsFormWysiwygTextArea(array());
$theEditor->setName('options[0]');
$form->addElement($theEditor);


================================================

That's pretty much it.

Good Luck!

Gabriel Medina
Administrator
Rha7.Com Web Development and Design
Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

178 user(s) are online (7 user(s) are browsing Publisher)


Members: 0


Guests: 178


more...

Donat-O-Meter

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

Latest GitHub Commits

Categories