nexus6
V2EX  ›  Django

Django+ckeditor 的新手问题

  •  1
     
  •   nexus6 ·
    NexusRJ · Sep 29, 2014 · 4541 views
    This topic created in 4253 days ago, the information mentioned may be changed or developed.
    RT,新手一枚,django-ckeditor和Pillow都已安装,models中一个字段为RichTextField(),注册admin后生成的管理页面中没有toolbar,只有一个可缩放的textField(),ckeditor_configs是toolbar:full,页面功能都没有问题,就是textfield没有样式和js,但是配置都是按照网上搜到的来的,求大神看看到底是哪里不对
    我觉着还是没配置好,求问下详细的配置位置,最好能解释清楚,感激不尽~

    环境:ubuntu14.04 Python2.7 django1.7 Pycharm
    2 replies    2014-09-29 18:21:34 +08:00
    zation777
        1
    zation777  
       Sep 29, 2014   ❤️ 1
    贴head和JS代码
    nexus6
        2
    nexus6  
    OP
       Sep 29, 2014
    @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>
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3123 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 06:25 · PVG 14:25 · LAX 23:25 · JFK 02:25
    ♥ Do have faith in what you're doing.