帝国CMS百度编辑器ueditor前台代码高亮无法换行解决方法

以下文件需要修改:

/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css

打开:shCoreDefault.css

找到81行,

  1. .syntaxhighlighter table {    width: 100% !important;      border: 1px solid #c0c0c0 !important;  }
复制代码

修改为:

  1. .syntaxhighlighter table {    width: 100% !important; word-break:break-all;      border: 1px solid #c0c0c0 !important;  }
复制代码

即可实现换行,增加了一句:word-break:break-all;代码,

意思是:强制打断并换行的意思。





上一篇:帝国CMS-百度编辑器ueditor代码高亮效果前台不显示的解决方法
下一篇:帝国cms搜索模板支持灵动标签和万能标签(支持到7.5)
如无回复请发邮件