Closed breakliu closed 10 years ago
没用过Paloma,你看看是不是需要像turbolinks那样手动加载kindeditor?另外你需要js调试工具,查看错误的具体信息才能知道问题在哪里。
嗯,后来我去掉Paloma了。原因是rails_kineditor会有ajax请求,这东东会在ajax请求后加一段html代码……我看了一下没找到解决方案
这个问题应该是可以解决的,要看具体情况分析
你可以试一下手动加载kindeditor
# coffeescript code
$(document).on 'page:load', ->
if $('#article_content').length > 0
KindEditor.create '#article_content',
"width":"100%",
"height":300,
"allowFileManager":true,
"uploadJson":"/kindeditor/upload",
"fileManagerJson":"/kindeditor/filemanager",
"items":["fontname","fontsize","|","forecolor","hilitecolor","bold","italic","underline","removeformat","|","justifyleft","justifycenter","justifyright","insertorderedlist","insertunorderedlist","|","emoticons","image","link"]
感谢,我在另外一个项目试试看 : )
因为用了Paloma,会在js请求加入一些代码,导致上传附件和图片那里会有问题,不知有何解决方法?