1
Hi,
First, this is just an exercice and a hack ,
don't use it on a production website until you have completly and fully tested id !The goal is to replace
all the XOOPS dhtml textareas (input boxes), like the one you can see when you create a custom block, with Kiovi.
Begin with the kiovi's installation. Please report to the text file named readme.txt inside the kiovi's archive to know how to do it.
Once it's done, edit the file /xoops/class/wysiwyg/formwysiwygtextarea.php and rename the function
render() with
_render(), so you must have :
Quote:
I have just added the underscore character at the first position of the name.
After this, edit the file named /xoops/class/xoopsform/formdhtmltextarea.php
After this line,
Quote:
include_once XOOPS_ROOT_PATH."/class/xoopsform/formtextarea.php";
add this new one :
Quote:
include_once XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";
Then, replace the line :
Quote:
class XoopsFormDhtmlTextArea extends XoopsFormTextArea
with :
Quote:
class XoopsFormDhtmlTextArea extends XoopsFormWysiwygTextArea
replace all the content of the function named XoopsFormDhtmlTextArea with :
Quote:
function XoopsFormDhtmlTextArea($caption, $name, $value, $rows='100%', $cols='400px', $hiddentext="xoopsHiddenText")
{
$this->XoopsFormWysiwygTextArea($caption, $name, $value, $rows, $cols,'',$skin="default");
}
and replace the function render() with :
Quote:
function render()
{
return $this->_render();
}
That's all !
If someone have the time, you can do the same with the class XoopsFormTextArea contained in the file formtextarea.php
Bye,
Herve