放到磁盤上,比如 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>
啟動項目,