Plone - TinyMCE 编辑器 - 双行间距而不是单行间距的换行符
我们使用 Plone 4.1.3 和默认的 TinyMCE 编辑器。当我们在 TinyMCE 中按 Enter 键时,它会产生双倍行距而不是单行距。我们在论坛上发现了一些关于这个问题的类似问题和答案,但不知道也找不到TinyMCE配置文件来修改以将换行变成单行距。站点设置或 ZMI 中也没有任何内容可以为 TinyMCE 配置此功能。
我们在论坛上找到了这个,但它与克隆无关。 减小TinyMCE文本区域中的行间距
非常感谢您的期待
cmgui
We are using Plone 4.1.3 and the default TinyMCE editor. When we press the Enter key in TinyMCE, it produces a double line spacing instead of single line. We found a few similar questions and answers on this issue in the forum but don't know and cannot find the TinyMCE configuration file to modify to make line break into single line spacing. There is also nothing in Site Setup or ZMI to configure this for TinyMCE.
We found this the forum but it is not pertaining to plone.
Decrease the line spacing in TinyMCE textarea
Thank you very much in anticipation
cmgui
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
CSS。这些只是段落元素(
标签)。 ——给它们设计风格!
http://plone.293351.n2.nabble.com/TinyMCE-Plone-4-customizing-the-styles-for-own-CSS-classes-td5954678.html
CSS. These are just paragraph elements (<p> tags). -- style them!
http://plone.293351.n2.nabble.com/TinyMCE-Plone-4-customizing-the-styles-for-own-CSS-classes-td5954678.html
正如斯杜普顿所指出的,这确实是故意的; Enter 应该是一个段落分隔符,并且在 Word 等应用程序中的行为方式相同。您可以通过 Shift-Enter 插入换行符,但不鼓励在网络上这样做,因为文本流动取决于字体大小和窗口大小(以及操作系统!)。
如果您希望段落的间距较小,请使用 CSS 来减少边距/填充。
As sdupton pointed out, this is indeed on purpose; enter is supposed to be a paragraph break, and behaves the same way in applications like Word. You can insert line breaks by shift-enter, but it's not encouraged to do that on the web, since text flows differently depending on font size and window size (and OS!).
If you want paragraphs to have less spacing, use CSS to reduce the margin/padding.