11th Sep 2009
Efficient Usage Of FCKEditor
Table of Contents
- Introduction
- What is FCKEditor?
- When Should We Use FCKEditor?
- The features that attracts the user to use it
- What are improvement needs in it?
- Integrate FCKEditor Step by Step
- How to apply Themes
- How to apply Language
- Conclusion
- Bibliography
- References
- History
Introduction
There are many editors available in the market. Each editor has its own features, benefits and drawbacks. FCKEditor is top one of them in Open Source category. In this article, I will explain some of good features.
What is FCKEditor?
FCKEditor is HTML text editor brings to the web much of the power of desktop editors like MS Word. FCKEditor is powerful tool which provides the html editing, theme to suit your web interface, multiple language supports, selection of tools to be displayed as per requirement, image upload, flash file upload and many more. It’s lightweight and doesn’t require any kind of installation on the client computer.
The features that attracts the user to use it
- Open source
- User friendly and easy to integrate
- Toolbar selection facility
- Support of multiple language
- Support of skin to suite web page UI
- Light weight
- Image and flash file upload
The improvement which could be done
- Inbuilt facility to select theme at client side
- Inbuilt facility to select language at client side
- More font type and font size to improve user interface
Integrate FCKEditor Step by Step
- Download FCKEditor source code from following link: http://sourceforge.net/projects/FCKEditor /files/FCKEditor /2.6.4.1/FCKEditor _2.6.4.1.zip/download
- Create new/ Open existing web project/ website

- Copy FCKEditor source code folder and paste it to website root directory.

- Copy FCKEditor FredCK.FCKEditor V2.dll file from source code and paste it to website Bin folder

- You have to register FCKEditor to use it in your page. There are two way to register it. Manual: Following script will register it. You have add this script in every page you want to use FCKEditor.
From Toolbar: : You can Otherwise, you can browse FCKEditor by right click on Toolbar >> Choose Items. A dialog box will appear as shown in following image. Select .Net Framework Components >> Click on Browse button located at right hand bottom. Choose the .dll of FCKEditor from the bin directory of your application. An item called FCKEditor will be added to your Toolbar. Now you are ready to drag and drop editor in your page. If you place editor in your page, it will also add same code in your web page as we have done in manual method. - Run website, you can see the FCKEditor in your browser with default theme and default English language.

How to apply Theme?
FCKEditor having a great themeing feature. User can apply the theme in two ways. One way is dynamically and another statically. The site of FCKEditor provides 3 themes to be downloading. There are many third party open source themes available to download. I have shared few themes with this article.
[1]. Default Theme
[2]. Office2003 Theme

[3]. Silver Theme
Now, how can assign default theme and apply dynamic theme?
Answer is here:
First of all you can set default theme from fckconfig.js, look at below image:

You can also set the language from .aspx /html /php page where you have declare FCKEditor .
Just set the SkinPath Property.

Now run the application you can view the office2003 theme in FCKEditor as you have set in above page.

How to apply Language?
FCKEditor provides a great multiple language support feature. User can able to change the language dynamically or set default language as per website language.
FCKEditor provides 56 languages that is you can use as per your requirement.
Now, how can assign default language or apply dynamic language?
Answer is here:
First of all you can set default language from fckconfig.js, look at below image:

You can also set the language from .aspx /.html /.php page where you have declare FCKEditor.
Just set the DefaultLanguage Property.
Now run the application you can view the Arabic language in FCKEditor as you have set in above page.

Conclusion
FCKEditor is very simple, easy to integrate and can be used in almost all the web application as html editor/ rich textbox editor.
Bibliography
References
History
4th September, 2009: initial post

Thanks amit
Any idea on how to insert custom link thru plugin.
Thanks in advance.
thanx for this wonderful information about the fckeditor but by doing same step i can’t able to write in arabic language. what could be the problem here .
Hello saima,
Thanks for read this article.
When we change the language as arabic in fckeditor it just provide their ui as per arabic language i.e. it take input from right to left and all the controls appear in arabic language. but you input the text in Editor as per your keyboard language support.
Fill free to ask any further doubts.
Your Suggestions are always welcome.
Thanks,
Amit Shah