一个页面多个编辑器
最后更新于:2022-04-01 23:41:06
wangEditor支持一个页面创建多个编辑器,代码如下。详细代码可参考 https://github.com/wangfupeng1988/wangEditor/blob/master/test/test-muti.html
```html
';
------- 分割线 -------
``` ----- 注意以上代码中的这个片段 ```javascript // 避免上面编辑器的 dropPanel 被下面的编辑器遮挡,保证下面的编辑器的 z-index 要小于上面的编辑器 editor1.$editorContainer.css('z-index', 20) editor2.$editorContainer.css('z-index', 10) ``` 如果不加上,会出现以下截图中的错误:  ---- **另外,目前不支持一个页面多个编辑器的情况下使用『地图』,浏览器的 console.log 中会出现如下提示:** 