参考:使用CKEditor时未定义自我
参考:导入ckeditor时未定义自我。我正在使用next.js。
import { CKEditor } from '@ckeditor/ckeditor5-react';
已经安装了使用
npm install --save @ckeditor/ckeditor5-react @ckeditor/ckeditor5-build-classic
ReferenceError: self is not defined while importing CKEditor. I am using next.js.
import { CKEditor } from '@ckeditor/ckeditor5-react';
Already installed using
npm install --save @ckeditor/ckeditor5-react @ckeditor/ckeditor5-build-classic
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一番试验之后,我终于使它与此设置(NextJS项目)一起使用。无需更改WebPack配置。您如何处理输入数据取决于您。
-myeditor.jsx-
在任何其他组件中:
After some trial-and-error I have finally made it work with this setup (NextJS project). No need to alter webpack config. How you handle your input data is up to you.
-MyEditor.jsx
-in any other component: