wangEditor menu bar ceiling problem-solving

Reference: https://www.kancloud.cn/wangfupeng/wangeditor2/113980

 

When the page and scroll down to hide the menu bar, the editor default fixedmenu bar that lets the menu bar to keep "Ceiling" status. However, by editor.config.menuFixed off fixedstate, to change the menu to change the value fexedon 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>

 

Guess you like

Origin www.cnblogs.com/linjiangxian/p/11492202.html