这是一个创建于 3647 天前的主题,其中的信息可能已经有所发展或是发生改变。
RT,UE在后台编辑时可以实现代码高亮,预览也没问题,发布到页面后就无法加载高亮部分的JS和样式了.....
看了下官方的demo里只加载了ueditor.config.js和ueditor.all.min.js,就手动加载到页面也不能显示。页面源码里标签的class是brush:python,但是这个标签没有任何样式
求大神给看看什么情况.......JS小白一个......
Ubuntu+py2.7+vim
4 条回复 • 2015-06-29 13:57:06 +08:00
|
|
1
wuxianglong 2014-10-10 14:51:13 +08:00 1
需要将SyntaxHighlighter插件中的JS和CSS放在html页面中才行。。。。
|
|
|
2
nexus6 2014-10-10 15:53:07 +08:00
多谢赐教,按你说的解决了。不会前端真是伤不起。。。。
|
|
|
4
felixonly 2015-06-29 13:57:06 +08:00
@ nexus6 是用的Django Ueditor么,我照做了怎么还不行?
|