Plugins You can find out about all the publicly available Grails plugins.

FCKeditor plugin

  • Tags: fck, wysiwyg, ui
  • Latest: 0.9.5
  • Last Updated: 20 April 2010
  • Grails version: 1.0 > *
  • Authors: Stefano Gualdi
9 votes
compile "org.grails.plugins:fckeditor:0.9.5"




The plugin can be installed with the following command:

grails install-plugin fckeditor


FCKeditor Plugin

This plugin can be used to integrate rich web editing functionality in Grails applications.

The plugin is written in Groovy/Grails without any dependencies on external libraries.

The FCKeditor plugin is based on the great FCKeditor Web Rich Text Editor.

Source code

The source code of the plugin is now hosted on github:

Current version

Current version is 0.9.5

Based on FCKeditor ( version 2.6.6

This version is developed and tested with Grails 1.2.2

Tags reference

The plugin defines the following custom tags:

configConfigure the editor instance
editorRender the wysiwyg editor
fileBrowserCreate a link to open just the file browser

all the tags belongs to the namespace fckeditor

Tag config

This tag give full access to every configuration option exposed by FCKeditor.

The config tag must precede the editor tag.

<fckeditor:config OptionName="option_value"/>

Many options can be set in one time:

    OptionTwo="option_two_value" />

Option names are case sentitive and must be written as indicated in the official documentation.

For a full reference of the available options please refer to the official documentation

Tag editor

This tag render the wysiwyg editor

Initial text

available attributes are:

nameField name (default: "editor")
widthWidth of the editing space (default: "100%")
heightHeight of the editing space (default: "200")
toolbarToolbar to use as defined in fckconfig.js (default: "Default")
fileBrowserName of the file browser to use. Possible values are default or extended. The extended file browser supports deletion and rename of files and folders (default: "default")
userSpaceName of the file user space to use for file browsing and uploads (default: "")

For security reasons the userSpace attribute cannot contain any special character. Any invalid character will be removed.

Tag fileBrowser

Render a link to open a stand alone file browser not associated with an editor instance

<fckeditor:fileBrowser browser="default">Open file browser</fckeditor:fileBrowser>

available attributes are:

typeType of resource (default: "")
browserName of the file browser to use. Possible values are default or extended. The extended file browser supports deletion and rename of files and folders (default: "default")
userSpaceName of the file user space to use for file browsing and uploads (default: "")
targetTarget attribute for the generated <A> tag (default: "")

if you just need the link to the file browser there is a fileBrowserLink tag:

<a href="${fckeditor.fileBrowserLink(type:'Image', browser:'extended', userSpace:'userone')}">Open file browser</a>


The plugin can be configured with the standard Config.groovy file.

Actually are available the following options:

Config keyDefaultDescription
fckeditor.skipBrowserCheckfalseSkip browser detection. Always render the extented editor
fckeditor.upload.basedir/uploads/Base directory relative to webapp root if baseurl not defined, otherwise the absolute path where to store the uploaded files
fckeditor.upload.baseurlnoneThe base URL to access the uploaded files
fckeditor.upload.overwritefalseOverwite files on upload file browser for file objects upload tab for file objects[ ]Extensions allowed for file objects[ ]Extensions denied for file objects
fckeditor.upload.image.browserfalseEnable file browser for image objects
fckeditor.upload.image.uploadfalseEnable upload tab for image objects
fckeditor.upload.image.allowed[ ]Extensions allowed for image objects
fckeditor.upload.image.denied[ ]Extensions denied for image objects
fckeditor.upload.flash.browserfalseEnable file browser for flash objects
fckeditor.upload.flash.uploadfalseEnable upload tab for flash objects
fckeditor.upload.flash.allowed[ ]Extensions allowed for flash objects
fckeditor.upload.flash.denied[ ]Extensions denied for flash objects file browser for media objects upload tab for media objects[ ]Extensions allowed for media objects[ ]Extensions denied for media objects

Sample config

fckeditor {
    upload {
        basedir = "/tmp/storagearea/"
        baseurl = "/uploads/"
        overwrite = false
        link {
            browser = true
            upload = false
            allowed = []
            denied = ['html', 'htm', 'php', 'php2', 'php3', 'php4', 'php5',
                      'phtml', 'pwml', 'inc', 'asp', 'aspx', 'ascx', 'jsp',
                      'cfm', 'cfc', 'pl', 'bat', 'exe', 'com', 'dll', 'vbs', 'js', 'reg',
                      'cgi', 'htaccess', 'asis', 'sh', 'shtml', 'shtm', 'phtm']
        image {
            browser = true
            upload = true
            allowed = ['jpg', 'gif', 'jpeg', 'png']
            denied = []
        flash {
            browser = false
            upload = false
            allowed = ['swf']
            denied = []
        media {
            browser = false
            upload = false
            allowed = ['mpg','mpeg','avi','wmv','asf','mov']
            denied = []

Security note

For security reasons it is important to define allowed/denied extensions.

Version history

0.9.5 (20/04/2010)

  • Upgrade to FCKeditor version 2.6.6 final
  • Resolved compatibility issue with Grails 1.2.x (Thanks to Luke Daley)

0.9.4 (12/07/2009)

  • Upgrade to FCKeditor version final
  • Resolved jira issue GRAILSPLUGINS-1260 (thanks to Marc Palmer)
  • Optimized HTML rendering (thanks to Marc Palmer)

0.9.3 (23/06/2009)

  • No changes, just re-released due to a problem in zip file under linux (thanks to Scott Burch)

0.9.2 (21/05/2009)

  • Added Iceweasel to browser detection code (thanks to Sergej Dechand for notifying and testing)
  • Added new configuration flag skipBrowserCheck

0.9.1 (16/05/2009)

  • Corrected typo
  • Upgrade to Grails 1.1.1

0.9 (15/04/2009)

  • Upgrade to FCKeditor version 2.6.4 final
  • Added the config tag
  • Added the fileBrowser tag
  • Added user space handling for file browsing and uploading
  • Added configuration setting for handling uploads outside the application context

0.8 (26/08/2008)

  • Upgrade to FCKeditor version 2.6.3 final


  • Upgrade to FCKeditor version 2.6.0 final


  • This version correct an installation problem on windows XP (and maybe on other platforms) due to a missing respect of plugins naming conventions. Many thanks to Markus Samuelsson that first pointed out the problem and to Brian Bonner who sent me a patch.
  • This version include a modified file browser with the support for delete/rename files and folders. To use it simple add fileBrowser="extended" to the editor tag attributes.
  • Added youtube FCKeditor plugin
  • Added embedmovies FCKeditor plugin
  • Added two toolbars ('Standard' and 'Multimedia', the last one with the above plugins included)


  • First public release


For issues, improvements or new features go to the plugin's JIRA page