AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# 自定义菜单 编辑器创建之前,可使用 `editor.config` 方法定义显示哪些菜单和菜单的顺序。如果菜单太多,编辑器太窄,会有滚动条显示。 可通过 `config` 方法配置菜单和调整顺序。[在线预览](http://output.jsbin.com/dajalin) ```html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>xeditor</title> <script src="https://unpkg.com/xeditor"></script> </head> <body> <div id="xe" class="xe"></div> <div id="html"></div> <script> var myEditor = new window.xEditor('#xe') myEditor.config({ menus: [ 'backcolor', // 背景颜色 'bold', // 加粗 'code', // 源代码 'copy', // 剪切 'cut', // 剪切 ] }); myEditor.create(); </script> </body> </html> ```