下載插件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
周銳 閱讀(557)
評論(2) 編輯 收藏 所屬分類:
Groovy&Grails