ALLLRON

Results 4 comments of ALLLRON

请问在wujie引入的plugins还需要补充jsBeforeLoaders、jsloader吗? 我试了一下这个代码 在降级/非降级模式下都不能正常使用

demo的git地址:https://github.com/ALLLRON/wujie.git 分支:demo/wangeditor 启动main-vue & vue2 两个项目

> > > demo的git地址:https://github.com/ALLLRON/wujie.git 分支:demo/wangeditor > > > 启动main-vue & vue2 两个项目 > > > > > > 我尝试了一下,在这个 demo 项目里面是可以正常跑起来的。你使用的版本是是他的包的版本,你需要切换到我的分支用我的代码打包,才能使用我更新后的代码。 > > 有谁可以联系到作者,需要把这个包发布一下 @wangfupeng1988 > > 能先构建一下发个编译后的吗,我本地拉下来,构建有问题 wujie的demo是我做了适配的,所以可以。你可以拉取wangeditor源码编译一下后去对应处理。 主要是判断类似于...

非降级模式: 在wangEditor中有看到这位的iframe改造方案[微前端iframe兼容](https://github.com/wangeditor-team/wangEditor/pull/5518/commits) 主要还是判断当前是否在wujie下,wangEditor对于hasShadowRoot的判断在wujie中不准确,比较便捷的就是用wujie来进行判断 ```js jsLoader: (code) => { return ( code.replace( "window.document.activeElement&&window.document.activeElement.shadowRoot", "((window.document.activeElement && window.document.activeElement.shadowRoot) || window.$wujie )" ) .replace("!!t&&e instanceof t.Node", " e !=null&&typeof e.nodeType === 'number'") ); },...