There are many editors available in the market. Each editor has its own features, benefits and drawbacks. FCKEditor is top one of them in the Open Source category. In this article, I will explain some of the good features.
What is FCKEditor?
FCKeditor is an HTML text editor that brings to the web much of the power of desktop editors like Microsoft Word. Fckeditor is a 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.
Features that Attract 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
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
1. Download Fckeditor source code from the following link:
2. Create new/ Open existing web project/ website:
3. Copy Fckeditor source code folder and paste it to website root directory:
4. Copy Fckeditor FredCK.FCKeditorV2.dll file from source code and paste it to website Bin folder:
5. You have to register FCKEditor to use it in your page. There are two ways to register it.
a) Manual: The following script will register it. You have add this script in every page where you want to use FCKEditor.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2"
b) From Toolbar: You can otherwise, you can browse FCKEditor by right clicking on Toolbar >> Choose Items. A dialog box will appear as shown in the 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 the manual method.
6. Run website, you can see the FCKEditor in your browser with default theme and default English language.
How to Apply Theme?
FCKEditor has a great theming 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 downloaded. There are many third party open source themes available to download. I have shared few themes with this article, which you can find in the demo project attached with this article.
Now, how can we assign default theme and apply dynamic theme?
The answer is here: First of all, you can set default theme from fckconfig.js placed in FCKEditor folder, look at the below code:
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/Default/';
You can also set the language from .aspx /html /php page where you have declared Fckeditor.
Just set the
Now run the application. You can view the office2003 theme in Fckeditor as you have set in the above page.
How to Apply Language?
Fckeditor provides a great multiple language support feature. User is able to change the language dynamically or set default language as per website language.
Fckeditor provides 56 languages that you can use as per your requirement.
Now, how can we assign default language or apply dynamic language?
The answer is here:
First of all, you can set default language from fckconfig.js, look at the below code:
FCKConfig.AutoDetectLanguage = false ;
FCKConfig.DefaultLanguage = 'en' ;
FCKConfig.ContentLangDirection = 'ltr' ;
You can also set the language from .aspx /.html /.php page where you have declare Fckeditor.
Just set the
Now run the application. You can view the Arabic language in Fckeditor as you have set in the above page.
Fckeditor is very simple, easy to integrate and can be used in almost all the web applications as HTML editor/ rich textbox editor.
- 15th February, 2011: Initial post