Coder Social home page Coder Social logo

wangeditor-for-vue's People

Contributors

callqh avatar wangfupeng1988 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wangeditor-for-vue's Issues

add customUploadImg

hope to add a custom image upload method attribute to defaultConfig prop like v4 customUploadImg

上传图片根据文档配置了,还是报错get upload server address 没有配置上传地址

// 声明编辑器实例,必须用 shallowRef
const editorRefI = shallowRef()
const editorRefII = shallowRef()

const editorConfig: Partial = { // TS 语法
MENU_CONF: { }
}
editorConfig.MENU_CONF['uploadImage'] = {
server: '/api/upload-img',
// server: '/api/upload-img-10s', // test timeout
// server: '/api/upload-img-failed', // test failed
// server: '/api/xxx', // test 404

timeout: 5 * 1000, // 5s

fieldName: 'custom-fileName',
meta: { token: 'xxx', a: 100 },
metaWithUrl: true, // join params to url
headers: { Accept: 'text/x-json' },

maxFileSize: 10 * 1024 * 1024, // 10M

base64LimitSize: 5 * 1024, // insert base64 format, if file's size less than 5kb
}
const handleCreatedI = (editor: any) => {
editor.config = editorConfig
editorRefI.value = editor
};// 记录 editor 实例,重要!
const handleCreatedII = (editor: any) => editorRefII.value = editor;// 记录 editor 实例,重要!

引入到微前端(wujie)子应用中,就会报错。独立运行就正常使用

引入到微前端(wujie)子应用中,初始化渲染或操作就会异常。异常内容如下:

  1. 控制台报错
    Uncaught Error: Cannot resolve a Alate range form DOM range:
    at Object.toSlateRange(:6040:16050)
    at :6040:66545
    at HTMLDocument.(:6040:66632)
    at p(:6008:102969)
    at h(:6008:103025)
    at HTMLDocument.m(:6008:103347)

  2. 工具栏禁用不可操作了

初始化自动焦点问题

#初始化自动焦点问题
当前最新版本设置,foucus=false还是会自动设置焦点,导致键盘弹出

IE11 无法使用

报错信息为 : 无法获取或null引用的属性“set”, at node_modules/@wangeditor/editor/dist/index.esm.js 199:29

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.