Tuesday 6 September 2011

How to change FCKeditor skin, ToolbarSet, height and width

 How to  change FCKeditor skin, ToolbarSet, height and width

CKEditor is a text editor to be used inside web pages. It's a WYSIWYG editor, which means that the text being edited on it looks as similar as possible to the results users have when publishing it. It brings to the web common editing features found on desktop editing applications like Microsoft Word and OpenOffice.

Because CKEditor is licensed under flexible Open Source and commercial licenses, you'll be able to integrate and use it inside any kind of application. This is the ideal editor for developers, created to provide easy and powerful solutions to their users.

Implement with cakephp, Its an easy just follow the some steps. How to implement?

 How to  change FCKeditor skin, ToolbarSet, height and width.
Suppose in one page you have 3 editor and each need different height, width, skin or toolbarset. for this, Follow the following lines.

1) open file "app/views/helpers/fck.php"
2) go to function "load"
3)set all the vars as below
load($id, $skin='silver', $toolbar = 'Basic', $height='400', $width='300');
4)put the variable $skin as below
 bFCKeditor_$did.Skin         = '$skin';

do all the same
5)open the ctp file for add/edit where u r using calling load function [where u r creating editor]
and pass the arguments as below
 $fck->load('id', 'silver','Basic','200px', '200px' );