以下文件需要修改:
/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;代碼,
意思是:強制打斷并換行的意思。