posts - 431,  comments - 344,  trackbacks - 0
下载插件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>

启动项目,
posted on 2008-07-26 13:32 周锐 阅读(540) 评论(2)  编辑  收藏 所属分类: Groovy&Grails

只有注册用户登录后才能发表评论。


网站导航: