V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nexus6
V2EX  ›  Django

Django+ckeditor 的新手问题

  •  1
     
  •   nexus6 ·
    NexusRJ · 2014-09-29 17:09:37 +08:00 · 3596 次点击
    这是一个创建于 3497 天前的主题,其中的信息可能已经有所发展或是发生改变。
    RT,新手一枚,django-ckeditor和Pillow都已安装,models中一个字段为RichTextField(),注册admin后生成的管理页面中没有toolbar,只有一个可缩放的textField(),ckeditor_configs是toolbar:full,页面功能都没有问题,就是textfield没有样式和js,但是配置都是按照网上搜到的来的,求大神看看到底是哪里不对
    我觉着还是没配置好,求问下详细的配置位置,最好能解释清楚,感激不尽~

    环境:ubuntu14.04 Python2.7 django1.7 Pycharm
    2 条回复    2014-09-29 18:21:34 +08:00
    zation777
        1
    zation777  
       2014-09-29 17:37:37 +08:00   ❤️ 1
    贴head和JS代码
    nexus6
        2
    nexus6  
    OP
       2014-09-29 18:21:34 +08:00
    @zation777 没有写,就是用django的admin组件自动生成的后台,在生成的html里找到
    <script type="text/javascript" src="/static/ckeditor/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/static/ckeditor/ckeditor-init.js"></script>
    <style>.cke{visibility:hidden;}</style>
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1012 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:54 · PVG 06:54 · LAX 15:54 · JFK 18:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.