【问题标题】:How to replace strapis default wysiwyg editor to CKEditor如何将strapis默认的所见即所得编辑器替换为CKEditor
【发布时间】:2019-09-14 16:40:59
【问题描述】:

我正在尝试将 CKEditor 用于 Strapi 项目,但未能集成。

到目前为止我做了什么:

  • strapi new cms --quickstart 它正在启动我新的 cms 应用程序。
  • npm install ckeditor
  • 将位于./plugins/content-manager/admin/src/component/Edit/index.js的代码编辑到CKEditor实现
  • npm run build 来查看我的更改,也尝试了npm run setup

但在这里我收到错误webpackJsonp is not defined

我没有提供我修改的代码,因为build 命令直到那里才到达。

感谢您提供的任何帮助

【问题讨论】:

    标签: node.js ckeditor strapi


    【解决方案1】:

    为了在 Strapi 中更改默认的 WYSIWYG,您需要

    1. fork 存储库签出the CONTRIBUTING GUIDE
    2. 完成开发设置后,您可以直接修改packages/strapi-plugin-content-manager/admin/src/components/WYSIWYGWithErrors 及其相关子代中的代码。在strapi-admin中安装依赖
    3. 卸载内容管理器插件(再次确保您运行的是最新版本的 Strapi
    4. 将strapi-plugin-content-manager 包复制到应用的插件文件夹中(重命名为content-manager)
    5. 将以下file 复制到my-app/admin/src/plugins.js 并更改插件的路径,使其与您的新插件匹配
    6. 运行纱线开发

    【讨论】:

    • 谢谢@soupette 的回答,我会告诉你是否有效
    • @Mukhammadsher 我已经发表了一篇关于如何做到这一点的文章strapi.io/blog/…
    • 嘿@soupette,你删除了文章的最后一部分吗?在第三点,WysiwygWithErrors 和 CKEditor index.js 中的自定义缺失,我猜..
    猜你喜欢
    • 2013-07-05
    • 2020-04-23
    • 1970-01-01
    • 2018-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多