FCKeditor - PHP - Sample 4
This sample shows how to change the editor skin.
Select the skin to load:
Default
Office 2003
Silver
BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = $sBasePath ; if ( isset($_GET['Skin']) ) $oFCKeditor->Config['SkinPath'] = $sBasePath . 'editor/skins/' . htmlspecialchars($_GET['Skin']) . '/' ; $oFCKeditor->Value = 'This is some
sample text
. You are using
FCKeditor
.' ; $oFCKeditor->Create() ; ?>