PEAK XOOPS - Re: HTML in TinyD in englishin japanese

Re: HTML in TinyD

List posts in the topic

question Re: HTML in TinyD

msg# 1.1
depth:
1
Previous post - Next post | Parent - No child | Posted on 2004/12/9 16:23
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It's an issue of module.textsanitizer.php.

But it is natural to allow "javascript" for TinyD's content.

edit line 55 of tinycontent*/class/tinyd.textsanitizer.php
	function displayTarea( $text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1 , $nbsp = 0 )
	{
		// save "javascript:"
		$text = preg_replace( "/javascript:/si" , "jjaavvaassccrriipptt::" , $text ) ;

		$this->nbsp = $nbsp ;
		$text = parent::displayTarea( $text , $html , $smiley , $xcode , $image , $br ) ;
		// restore "javascript:"
		$text = preg_replace( "/jjaavvaassccrriipptt::/" , "javascript:" , $text ) ;
		return $this->tinyDCodeDecode( $text , $nbsp ) ;

If you want to paste above codes, eliminate a space between "java" and "script".
Votes:4 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!