0

I did the install:

grails install-plugin fck-editor

i added to config:

fckeditor {
    upload {
        basedir = "/tmp/storagearea/"
        baseurl = "/uploads/"
        overwrite = false
        link {
            browser = true
            upload = false
            allowed = []
            denied = ['html', 'htm', 'php', 'php2', 'php3', 'php4', 'php5',
                      'phtml', 'pwml', 'inc', 'asp', 'aspx', 'ascx', 'jsp',
                      'cfm', 'cfc', 'pl', 'bat', 'exe', 'com', 'dll', 'vbs', 'js', 'reg',
                      'cgi', 'htaccess', 'asis', 'sh', 'shtml', 'shtm', 'phtm']
        }
        image {
            browser = true
            upload = true
            allowed = ['jpg', 'gif', 'jpeg', 'png']
            denied = []
        }
        flash {
            browser = false
            upload = false
            allowed = ['swf']
            denied = []
        }
        media {
            browser = false
            upload = false
            allowed = ['mpg','mpeg','avi','wmv','asf','mov']
            denied = []
        }
    }
}

Paste

 <fck:editor width="600" height="400">HELLO</fck:editor>

in my edit.gsp

The edit does not show in the browser.

full doc: http://grails.org/plugin/fckeditor running ubuntu 10.04 LTS and grails 2.0.3

Thanks!!

4

1 回答 1

1

FCKEditor 插件是一个很老的插件,两年没更新了。您应该使用跟踪最新版本 FCKEditor 的CKEditor 插件,现在称为CKEditor

您需要嵌入编辑器的正确标签是<ckeditor:editor>. 您需要在 中包含<ckeditor:resources /><head>包含实例化编辑器所需的 Javascript 和其他静态文件。

于 2012-09-20T20:41:29.400 回答