放到磁盤上,比如 D:/down/grails-fck-editor-0.3.zip
安裝: grails install-plugin D:/down/grails-fck-editor-0.3.zip
這里我使用的是grails1.0.3, 在干裝的時(shí)候會(huì)報(bào)錯(cuò)..
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.
這時(shí)候到自己的工程目錄下找到plugins文件夾, 解壓grails-fck-editor-0.3.zip到當(dāng)前目錄.
在頁面里使用fck標(biāo)簽:
<fck:editor id="content" name="content" height="400">
${fieldValue(bean:news,field:'content')}
</fck:editor>
啟動(dòng)項(xiàng)目,