Grails中使用Fck-editor

Grails中使用Fck-editor
下载插件grails-fck-editor-0.3。下载地址 http://svn.codehaus.org/grails-plugins/grails-fck-editor/tags/RELEASE_0_3/grails-fck-editor-0.3.zip 。
放到磁盘上,比如 D:/down/grails-fck-editor-0.3.zip
安装: grails install-plugin D:/down/grails-fck-editor-0.3.zip
这里我使用的是grails1.0.3, 在干装的时候会报错..
Grails Bug: If the plugin wasn't loaded it should be in the failed plugins list,
but is not. Please report the issue.
Java.lang.IllegalArgumentException: Grails Bug: If the plugin wasn't loaded it s
hould be in the failed plugins list, but is not. Please report the issue.

这时候到自己的工程目录下找到plugins文件夹, 解压grails-fck-editor-0.3.zip到当前目录.
在页面里使用fck标签:
<fck:editor id="content" name="content" height="400">
          ${fieldValue(bean:news,field:'content')}
</fck:editor>

启动项目,

你可能感兴趣的:(Grails中使用Fck-editor)