How to prevent horizontal scrolling of MCE editor

微笑、不失礼 提交于 2019-12-05 11:52:27

.tinymce-content { white-space: normal; }

This sounds like a CSS issue. Can you provide a working example or demo URL? It sounds like the text is not wrapping to its container.

Also, text won't wrap unless it contains spaces or hyphens, if that makes a difference.

There's a param in TinyMCE that adds CSS style which makes text spread wide without wrapping it by the container box (adding horizontal scrollbar). It's boolean "nowrap". To make text wrapped inside the container box set it to false (this actually a default):

 tinymce.init({ 
        ...
        nowrap : false
        });
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!