[英]Empty space in TinyMCE toolbar
I'm using latest stable release of TinyMCE 4. Initialization code: 我正在使用TinyMCE 4的最新稳定版本。初始化代码:
tinyMCE.init({
mode: "textareas",
plugins: "codesample hr lists preview anchor code visualblocks fullscreen",
toolbar: ['alignleft aligncenter alignright alignjustify alignnone | styleselect formatselect | bold italic blockquote | link unlink',
'bullist numlist anchor | image | preview | codesample | visualblocks fullscreen code'
],
menubar: false,
height: 600,
codesample_languages: [
{text: 'Java', value: 'java'},
{text: 'Python', value: 'python'},
{text: 'HTML/XML', value: 'markup'},
{text: 'JavaScript', value: 'javascript'},
{text: 'CSS', value: 'css'},
{text: 'C', value: 'c'},
{text: 'C++', value: 'cpp'}
]
});
This code gives the following result: 此代码给出以下结果:
As you can see, there is an empty space in the first toolbar, but the second one is OK. 如您所见,第一个工具栏上有一个空白,但是第二个是可以的。 How to fix this?
如何解决这个问题?
I had a similar problem not related to Django. 我有一个与Django不相关的类似问题。 It would seem that the the menu items were picking up the float position of a previous floating element.
似乎菜单项正在拾取上一个浮动元素的浮动位置。 Wrap your textarea with a
style="clear:both;"
使用
style="clear:both;"
将您的textarea换行style="clear:both;"
<div style="clear:both;"> <textarea></textarea> </div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.