The two days this site successfully installed integrated Baidu editor Ueditor, with a pretty good, but encountered a little problem
Problem Description: Inserted in the content of the code highlighted, the background editor can be automatically wrapped, but published, in the foreground view, found that the code can not automatically wrap, directly beyond the boundaries of the content page, very beautiful, although the copy can be complete. Workaround: Find the CSS file for the highlighted code display/E/DATA/ECMSEDITOR/UEDITOR/THIRD-PARTY/SYNTAXHIGHLIGHTER/SHCOREDEFAULT.CSS The specific path according to your ueditor make changes to find the code as follows:. syntaxhighlighter{width:100%!important;margin:.3em 0 3em 0!important;position: Relative!important;overflow:auto!important;background-color: #f5f5f5!important;border:1px solid #ccc!important; Change to code as follows:. syntaxhighlighter{width:100%!important;margin:.3em 0 3em 0!important;position:relative!important;o Verflow:auto!important;background-color: #f5f5f5!important;border:1px solid #ccc!important;word-break:break-all; is to add word-break:break-all; Maybe different ueditor versions of CSS are not the same, as long as the corresponding position plus this force-wrapping is OK