FCKEditor

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
fshocker
Posts: 6
Joined: Thu 24. Mar 2005, 14:09

FCKEditor

Post 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.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
fshocker
Posts: 6
Joined: Thu 24. Mar 2005, 14:09

Post by fshocker »

I'm having the same problem as htmlarea where buttons (like forms) has been removed. How do i restore them.

Thanks.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Post Reply