Reference: https://www.kancloud.cn/wangfupeng/wangeditor2/113980
When the page and scroll down to hide the menu bar, the editor default fixed
menu bar that lets the menu bar to keep "Ceiling" status. However, by editor.config.menuFixed
off fixed
state, to change the menu to change the value fexed
on the time margin from the browser.
<div id="div1"> <p>请输入内容...</p> </div> <!--这里引用jquery和wangEditor.js--> <script type="text/javascript"> var editor = new wangEditor('div1'); // 关闭菜单栏fixed editor.config.menuFixed = false; // 修改菜单栏fixed的上边距(单位 px) // editor.config.menuFixed = 50; editor.create(); </script>