aboutme.be

Using FCKEditor in Flex and AIR


hero image

UPDATE: you should take a look at my CKEditor implementation, as CKEditor is the successor to FCKEditor.

One of the most wanted features in Adobe Flex / AIR is a better Rich Text Editor. There are some great ones available for javascript, so why can’t we have an editor with the same featureset? Well, it is actually possible to incorporate existing javascript editors in your Flex / AIR applications.

You can download my library + demo’s at /wp-content/uploads/flex_fckeditor/flex_fck_editor_0.1.zip

Sources of my CKEditor bridge are available on Github.

If you want to use FCKEditor in your own Flex or AIR projects, add the swc to your library path, and the assets folder to your src folder (just like the demo projects).

When you use the component in a Flex project, you need to ensure you set the wmode property to ‘opaque’. Also, if you run it on your local filesystem with Internet Explorer, you won’t see the component. It works fine if you run it on a webserver.

Currently it’s possible to get / set the htmlText, and change the toolbar set. I hope you enjoy this component, if you find any bugs or have feature request, feel free to post them in the comments.