PEAK XOOPS - Re: wysiwyg editor in englishin japanese

Re: wysiwyg editor

List posts in the topic

question Re: wysiwyg editor

msg# 1.1.1.1.1.1.2
depth:
6
Previous post - Next post | Parent - Children.1 | Posted on 2006/4/3 4:06
domecc  二等兵   Posts: 3
//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 ;
	}
Votes:9 Average:8.89

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!