wangeditor-team / wangEditor-for-vue3

wangEditor v5 Vue3 component
https://www.wangeditor.com/
34 stars 19 forks source link

vite+vue3 会提示错误 #8

Closed lambert519 closed 1 year ago

lambert519 commented 2 years ago

vite2.8 vue3.2 安装了@wangeditor/editor-for-vue@next

编辑器的config里面全是这个。 arguments: [Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.invokeGetter (:2:14)] 自定义粘贴和自定义弹窗都失效

callqh commented 2 years ago

没有复现你的问题,我使用的是这个测试代码editor-vue3-demo。 你可以查看一下,或者提供一个可以复现您这个问题的demo

Corgis commented 2 years ago

请问怎么拿 菜单栏 实例 下面代码拿的是 编辑区的示例啊 const handleCreated = (editor) => { editorRef.value = editor // editor实例 }

wangfupeng1988 commented 2 years ago

@Corgis 参考这里 https://www.wangeditor.com/v5/toolbar-config.html#getconfig ,如果获取不到就在 setTimeout 中获取