Index: trunk/admin/editor/cmseditor/fckeditor.php
===================================================================
diff -u -r2002 -r5219
--- trunk/admin/editor/cmseditor/fckeditor.php (.../fckeditor.php) (revision 2002)
+++ trunk/admin/editor/cmseditor/fckeditor.php (.../fckeditor.php) (revision 5219)
@@ -1,22 +1,22 @@
CreateHtml() ;
}
-
+
function CreateHtml()
{
$HtmlValue = htmlspecialchars( $this->Value ) ;
$Html = '
' ;
-
+
if ( $this->IsCompatible() )
{
$Link = "{$this->BasePath}editor/fckeditor.html?InstanceName={$this->InstanceName}" ;
-
+
if ( $this->ToolbarSet != '' )
$Link .= "&Toolbar={$this->ToolbarSet}" ;
@@ -84,7 +84,7 @@
}
$Html .= '
' ;
-
+
return $Html ;
}
@@ -117,23 +117,23 @@
$sParams .= '&' ;
else
$bFirst = false ;
-
+
if ( $sValue === true )
$sParams .= $this->EncodeConfig( $sKey ) . '=true' ;
else if ( $sValue === false )
$sParams .= $this->EncodeConfig( $sKey ) . '=false' ;
else
$sParams .= $this->EncodeConfig( $sKey ) . '=' . $this->EncodeConfig( $sValue ) ;
}
-
+
return $sParams ;
}
function EncodeConfig( $valueToEncode )
{
- $chars = array(
- '&' => '%26',
- '=' => '%3D',
+ $chars = array(
+ '&' => '%26',
+ '=' => '%3D',
'"' => '%22' ) ;
return strtr( $valueToEncode, $chars ) ;