Apr
20
Excellent WYSIWYG HTML editor (all platforms)


Posted: 20th April 2007
Tags: , ,
Posted in .Net, Javascript, Ruby on Rails
Comments: 4 Comments »


Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

Warning: Invalid argument supplied for foreach() in D:\clockworkobjects.co.uk\wwwroot\wp-content\plugins\wp-syntax\geshi\geshi.php on line 2281

I have been trying out several HTML editors for ASP.Net and thought I would share this excellent find that works with several platforms, including ASP.Net, ASP, PHP, Java etc. Up until now I was using FreeTextBox, however this was giving me grief in Firefox so decided that I needed to find a new solution.

FCKeditor is an excellent HTML WYSIWYG editor for ASP.Net as an ASP.Net control is available to use with the Javascript source files to allow you to interact (Get / Set text) etc programmatic ally as you can do with FreeTextBox. In addition to this, FCKEditor allows you to upload images and other files making adding images a breeze and also includes a spell-checker.

Using FCKEditor is also a piece of cake. Simply download FCKEditor and extract the fckeditor directory, placing it the root of your ASP.Net application.

In addition to this, to use the ASP.Net control you need to ensure that the FredCK. FCKEditorV2.dll file is in your bin directory, you can then either add it to your tool bar, and drag-n-drop the control in, or add the following page directive to your ASPX page:

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>;

And then add the following control:

<fckeditorv2:fckeditor id="FCKeditor1" runat="server" height="500px" skinpath="skins/office2003/" toolbarset="Pilot" customconfigurationspath="/fckeditor/fckconfig.js">
</fckeditorv2:fckeditor>

FCKEditor is highly configurable as it is opensource and you can very easily edit the fckconfig.js file to create a new custom toolbar. If you do this, you will need to specify the ToolbarSet property and also add the CustomConfigurationPath properties to your control. The FCKEditor also comes with 3 skins: default, office2003 and silver (a silver version of office 2003). These can be set using the SkinPath configuration above.

As the fckeditor javascript directory is generic for 9 languages, it needs trimming down before deploying live. There is a readme.txt supplied with the download, but basically it involves deleting the server-side code to handle the file-uploads for the languages you are not using and also deleting the skin files you are not using.

Finally if you want to be able to upload files, you need to create a directory in the root of you application called UserFiles. When the user inserts an image from a local file, it is uploaded to this directory.

FCKEditor is a feature rich, cross-browser compatible (Safari will also shortly be supported) WYSIWYG HTML Editor for ASP.Net which is highly configurable and easy to use.

Comments below..

Advertisement

 




Comments

Note: You can leave a response, or trackback from your own site.

 
Comment:

Have you looked at the HTML component for Flex where they embed FCKeditor in to a flash application?

It fixes the Flex RTE lack of feature issue but I wonder how good it works.

 
 
Avatar

Chuck Frazier
29/01/2008
6:51 pm

Comment:

I’m having a Flex 2 app with AMFPHP and MySQL written and need a WYSIWYG text editor. I showed the FCKeditor to my developer and he said it would not be a good solution for Flex since it uses JavaScript.

Can you confirm if that’s true? I keep feeling they want to steer me towards developing something from scratch and I’d prefer to have something pre-developed.

I appreciate any advice you can provide.

Sincerely,
Chuck

 
 
Comment:

Hi Chuck,

It is true FCKEditor is great for HTML based web applications but to use with flex you would have to make calls from Flex to JavaScript using External Interface or the new Flex Javascript Bridge which can work fine, but might not be ideal. Have a look at this http://www.judahfrangipane.com/blog/?p=132

Jon

 
 
Avatar

EvilInside
18/03/2008
12:10 pm

Comment:

Plz help
How can you configure for the image upload problem

 
Add a comment: