see the document.
upload common/ inside the archive of TinyD into just under XOOPS_ROOT_PATH/ .
Dear gijoe, i think i haven't explained clear enough, my interest is to use the " inbetween editor", not the "spaw editor".
thanks for your attenttion
The wysiwyg editor i said is:
Inbetween
InbetweenthatĦs a module adaptation from TinyMCE 2.0.3 wich offer the option to make differents toolsets by groups.
thanks for your help GIJOE
If you know the wysiwyg editor well, it is easy to implement it.
Just modify this (perhaps).
line 423 of admin/index.php
// content body
$spaw_flag = false ;
if( ! empty( $_GET['usespaw'] ) ) {
// SPAW Config
include XOOPS_ROOT_PATH.'/common/spaw/spaw_control.class.php' ;
if( check_browser_can_use_spaw() ) {
ob_start() ;
$sw = new SPAW_Wysiwyg( 'message' , $message ) ;
$sw->show() ;
$form->addElement( new XoopsFormLabel( _TC_CONTENT , ob_get_contents() ) ) ;
ob_end_clean() ;
$spaw_flag = true ;
}
}
//Original CodeĦ§admin/index.php, line 423-435
$spaw_flag = false ;
if( ! empty( $_GET['usespaw'] ) ) {
// SPAW Config
include XOOPS_ROOT_PATH.'/common/spaw/spaw_control.class.php' ;
if( check_browser_can_use_spaw() ) {
ob_start() ;
$sw = new SPAW_Wysiwyg( 'message' , $message ) ;
$sw->show() ;
$form->addElement( new XoopsFormLabel( _TC_CONTENT , ob_get_contents() ) ) ;
ob_end_clean() ;
$spaw_flag = true ;
}
}
// Modified CodeĦ§replace the upper code with the following
$spaw_flag = false ;
if( ! empty( $_GET['usespaw'] ) ) {
include_once XOOPS_ROOT_PATH."/class/xoopseditor/inbetween/forminbetweentextarea.php";
$form->addElement(new XoopsFormInbetweenTextArea(array('caption'=> _TC_CONTENT, 'name'=>'message', 'value'=>htmlspecialchars( $message , ENT_QUOTES ), 'width'=>'100%', 'height'=>'450px')));
$spaw_flag = true ;
}