Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装后是不是还需要引入ueditor #34

Open
PeterHan-Enjoy opened this issue Jun 26, 2019 · 5 comments
Open

安装后是不是还需要引入ueditor #34

PeterHan-Enjoy opened this issue Jun 26, 2019 · 5 comments

Comments

@PeterHan-Enjoy
Copy link

webpack://[name]/./node_modules/_ifanrx-react-ueditor@2.3.0@ifanrx-react-ueditor/lib/ReactUeditor.js

Uncaught SyntaxError: Unexpected token <
undefined/ueditor/ueditor.all.min.js:1 Uncaught SyntaxError: Unexpected token <
ReactUeditor.js:323 Uncaught (in promise) TypeError: Cannot read property 'getEditor' of undefined
at ReactUeditor.initEditor (ReactUeditor.js:323)
at ReactUeditor.js:389

@Fredxingxing
Copy link

ueditor的路径不对

@PeterHan-Enjoy
Copy link
Author

ueditor的路径不对

路径改对了,还是报找不到getEditor这个方法

@PeterHan-Enjoy
Copy link
Author

ueditor的路径不对

把ueditor放在项目根目录了

@Fredxingxing
Copy link

你可以看看已经关闭的issues

@zxx2011509281
Copy link

把udeitor文件夹放到public下面, 引入的时候不要用相对路径
<ReactUeditor
ueditorPath=“/ueditor"
/>
每次有改动引入了的js文件后都要重新启动,不然又会报错。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants