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

 更新时间:2015年12月30日 16:42  点击:2033

以下文件需要修改:

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

打开:shCoreDefault.css

找到81行,

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

修改为:

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

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

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


[!--infotagslink--]

相关文章