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.
Web Rich Text Editor.
To use the wysiwyg editor in your page simply put the following code in your .gsp page:
The plugin can be configured with the standard Config.groovy file.
| Config key | Default | Description |
|---|
| fckeditor.upload.basedir | /uploads/ | Base directory relative to webapp root |
| fckeditor.upload.overwrite | false | Overwite files on upload |
| fckeditor.upload.link.browser | false | Enable file browser for file objects |
| fckeditor.upload.link.upload | false | Enable upload tab for file objects |
| fckeditor.upload.link.allowed | [ ] | Extensions allowed for file objects |
| fckeditor.upload.link.denied | [ ] | Extensions denied for file objects |
| fckeditor.upload.image.browser | false | Enable file browser for image objects |
| fckeditor.upload.image.upload | false | Enable 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.browser | false | Enable file browser for flash objects |
| fckeditor.upload.flash.upload | false | Enable upload tab for flash objects |
| fckeditor.upload.flash.allowed | [ ] | Extensions allowed for flash objects |
| fckeditor.upload.flash.denied | [ ] | Extensions denied for flash objects |
| fckeditor.upload.media.browser | false | Enable file browser for media objects |
| fckeditor.upload.media.upload | false | Enable upload tab for media objects |
| fckeditor.upload.media.allowed | [ ] | Extensions allowed for media objects |
| fckeditor.upload.media.denied | [ ] | Extensions denied for media objects |
fckeditor {
upload {
basedir = "/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 = []
}
}
}