最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Toolbar position in inline TinyMCE 4.0 - Stack Overflow

programmeradmin1浏览0评论

I'm looking into using TinyMCE 4.0 inline and noticed that the toolbar is floating right above the div. I wanted to have it fixed under another toolbar on top of my page with:

position: fixed;
top: 60px;
width: 100%;

This would be a trivial CSS override, if not for the fact that tinyMCE seems to be changing the classes as you scroll. If you scroll the page down while editing inline eventually the toobar will stick to the page top - changing the styling as this happens.

I've looked in the documentation for a simple positioning option, and tried overriding the CSS. Is there something I've missed - or do I really have to start looking into changing the core JS for it to stop fiddling with the classes/styles? Any ideas on how to configure it's position?

I'm looking into using TinyMCE 4.0 inline and noticed that the toolbar is floating right above the div. I wanted to have it fixed under another toolbar on top of my page with:

position: fixed;
top: 60px;
width: 100%;

This would be a trivial CSS override, if not for the fact that tinyMCE seems to be changing the classes as you scroll. If you scroll the page down while editing inline eventually the toobar will stick to the page top - changing the styling as this happens.

I've looked in the documentation for a simple positioning option, and tried overriding the CSS. Is there something I've missed - or do I really have to start looking into changing the core JS for it to stop fiddling with the classes/styles? Any ideas on how to configure it's position?

Share Improve this question edited Jun 10, 2013 at 1:49 Christoffer Bubach asked Jun 9, 2013 at 20:47 Christoffer BubachChristoffer Bubach 1,6863 gold badges17 silver badges46 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

This was fixed in the new 4.0 version but absent when I first tried it in 4.0rc3. They added the editor configuration option:

fixed_toolbar_container: "#css3-selector"
发布评论

评论列表(0)

  1. 暂无评论