I know that there are already richtext plugins for grails like RichUI, CKEditor, FckEditor etc, but is there any plugin which binds itself with grails so well that when I can use a rich textbox just by specifying widget attribute under the constraints clause Example
static constraints = {
dateCreated display:false
lastUpdated display:false
question nullable:true, widget:"richtext"
}
I don't know of such a feature, but I guess you can solve this by yourself:
install-templates
to get the scaffolding (and generate-all
) templates http://grails.org/doc/latest/ref/Command%20Line/install-templates.htmlrenderEditor.template
and in this a method called renderStringEditor
widget
constraintWould be a nice addition to the existing plugins.
btw: FckEditor seems to be a little bit old and I guess CKEditor should be used instead.