leejaen / react-lz-editor

A multilingual react rich-text editor component includes media support such as texts, images, videos, audios, links etc. Development based on Draft-Js and Ant-design, good support html, markdown, draft-raw mode. 一款基于 draft-Js 和 ant-design 实现的 react 富文本编辑器组件,支持文本、图片、视频、音频、链接等元素插入,同时支持HTML、markdown、draft Raw格式。
https://leejaen.github.io/react-lz-editor/index.html
MIT License
951 stars 154 forks source link

用antd3.x和react16.x以上的版本使用不正常,能否更新到最新的依赖包。 #183

Open liuyaoao opened 6 years ago

liuyaoao commented 6 years ago

源代码好像还有很多bug。我想改源码重新编译报错。

alex-my commented 6 years ago

看了DEMO和antd挺配的,不过antd(3.10.2)和react(16.5.2)运行报错

ERROR 24959 [-/127.0.0.1/-/200ms GET /article/write] nodejs.ReferenceError: self is not defined
    at /Users/alex/MyWork/test/node_modules/whatwg-fetch/dist/fetch.umd.js:8:40
    at support.searchParams (/Users/alex/MyWork/test/node_modules/whatwg-fetch/dist/fetch.umd.js:2:66)
    at Object.<anonymous> (/Users/alex/MyWork/test/node_modules/whatwg-fetch/dist/fetch.umd.js:5:2)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/alex/MyWork/test/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/alex/MyWork/test/node_modules/react-lz-editor/global/supports/methods/Request.js:15:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/alex/MyWork/test/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/alex/MyWork/test/node_modules/react-lz-editor/global/supports/publicDatas.js:6:18)
    at Module._compile (internal/modules/cjs/loader.js:689:30)