易仿帝国yfdiguo.com

您当前的位置:首页 > 问题库

帝国CMS百度编辑器ueditor代码高亮效果前台不显示的解决方法

zcmcss发表于2017-12-11问题库
使用百度编辑器,后台编辑信息添加代码正常高亮,但是网站前台却不高亮。
这是因为前台没有引用相关CSS文件的原因。
帝国CMS只需在内容模板引用以下文件即可:
<link href="/e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
<script type="text/javascript">     
SyntaxHighlighter.all();      
</script>

热门问题

©2017 易仿帝国yfdiguo.com


友情链接: 阿里云优惠网| 阿里云推荐码| 阿里云教程| 莫愁博客|
♥ www.yfdiguo.com
联系作者QQ: