wangEditor-for-vue3
wangEditor-for-vue3 copied to clipboard
wangEditor v5 Vue3 component
系统:ubuntu20.04 浏览器:chrome Version 100.0.4896.60 复现步骤,https://www.wangeditor.com/v5/for-frame.html#%E4%BD%BF%E7%94%A8-1 导入模板和script就可以复现
package.json exports types for typescript
```ts import {useWindowSize, useElementBounding, toValue} from '@vueuse/core' /** * 编辑器自适应高度 * * @export * @param {HTMLElement} selector */ export function useAutoHeight(selector: HTMLElement) { if (selector) { setTimeout(() => { const...
vue3+ts我引入就给我提示没有找到wangeditor的声明文件,官方有提供吗,还是需要自己声明
有些链接需要在当前页面跳转, 怎么设置a标签的其他属性呢?
当外部使用 const editor = ref() 来保存 editor 实例时,editor 会被封装成 reactive(editor) 这是一个 Proxy 对象。core 中通过 weakMap.get(ProxyHandler) 会存在取不到值的问题 通过 vue 的 toRaw 可以将一个 reactive 对象还原成原始的对象,该会方法对传递 editor 时会原生返回 toRaw 方法见:https://cn.vuejs.org/api/reactivity-advanced.html#toraw