Page 1 of 1

FCKEditor

Posted: Mon 23. May 2005, 16:46
by fshocker
The default editor for phpwcms seems to be htmlarea, but i see it seems to be packaged with another called fckeditor. How do you switch between the two.

Barring that you can't how do I get to enable the fontsize, font style, format dropdowns in the HTML Area.

thanks.

Posted: Mon 23. May 2005, 16:47
by pico
in your conf.inc.php

Code: Select all

$phpwcms["wysiwyg_editor"]    = 2;        //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based, 4 = spaw

Posted: Mon 23. May 2005, 17:02
by fshocker
I'm having the same problem as htmlarea where buttons (like forms) has been removed. How do i restore them.

Thanks.

Posted: Mon 23. May 2005, 18:07
by pico
goto ./inc/inc_ext/FCKeditior/

look at fckconfig.js there is code like this

Code: Select all

FCKConfig.ToolbarSets["phpwcms"] = [
	['Source','-','Save','NewPage','Preview'],
	['Cut','Copy','Paste','PasteText','PasteWord'],
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
	['About'],
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
	['OrderedList','UnorderedList','-','Outdent','Indent'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
	['Link','Unlink'],
	['TextColor','BGColor'], 
	['Image','Table','Rule','SpecialChar','Smiley'],['CssEditor'],
	['FontFormat','FontName','FontSize']
] ;
and in fckeditor.php you will see this Code

Code: Select all

	function FCKeditor( $instanceName )
	{
		$this->InstanceName	= $instanceName ;
		$this->BasePath		= '/FCKeditor2/' ;
		$this->Width		= '100%' ;
		$this->Height		= '200' ;
		$this->ToolbarSet	= 'phpwcms' ;
		$this->Value		= '' ;

		$this->Config		= array() ;
	}
this is for FCKEditor2 in phpwcms Version 1.2.1 if you use 1.1RC4 there are some differences :wink: