如何防止MCE编辑器水平滚动 [英] How to prevent horizontal scrolling of MCE editor

查看:100
本文介绍了如何防止MCE编辑器水平滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TinyMCE文本编辑器,当行超出宽度时,内的文本不会翻转,而是出现滚动条,并且文本水平显示.如何限制文本的宽度和文本框的宽度,而没有水平滚动条.

I am using TinyMCE text editor and the text within the does not roll over when the line goes beyond the width, rather a scroll bar appears and the text goes on horizontally. How can I confine the text withing the text box width and not have a horizontal scroll bar.

推荐答案

.tinymce-content { 空格:正常; }

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

这听起来像CSS问题.您可以提供一个可行的示例或演示URL吗?听起来文本没有包装到其容器中.

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.

这篇关于如何防止MCE编辑器水平滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆