@bigbinary/neeto-editor

中文文档
1.47.157发布于 2026/10/07MITTypeScriptESM + CJS零依赖近 30 天下载 2071

neetoEditor is the library that drives the rich text experience in all neeto products built at BigBinary

原始使用文档
文档目录6 节
  1. Installation
  2. Instructions for development
  3. Instructions for Publishing
  4. Package Release Process
  5. Manual Package Publishing
  6. Documentation

NeetoEditor

The neetoEditor library drives the rich text experience in the neeto products built at BigBinary.

Installation

yarn add @bigbinary/neeto-editor

For setting up image upload refer https://neeto-editor.neeto.com/?path=/docs/examples-customize-options-addons--addons.

Instructions for development

Install all the dependencies by executing following command.

yarn

Running the yarn storybook command starts a storybook application. Use this application to test out changes.

When developing frontend packages, it's crucial to test changes in a live environment using a host application. There are two ways to do this:

  1. Using yalc package manager: https://youtu.be/F4zZFnrNTq8

Note: If you are using yalc, you need to run yarn bundle after making changes to the package instead of yarn build which is described in the video.

  1. Directly updating the node_modules of the host application.

    1. Start the host application server

    2. Inside the package, execute the command:

        yarn bundle --watch --app ../neeto-site-web
      

      Here replace ../neeto-site-web with path to the host project.

      Now, any changes made to the neetoEditor codebase will be instantly reflected in the UI.

    3. Remove local installation

      Run the following command to reset to the initial state.

      yarn install --check-files
      
    4. Translation File Changes (optional)

      Modifications in the neeto-editor translation files will not automatically update the UI. To verify these changes, update your neeto-site-web/app/javascript/packs/application.js file with the following code:

      import en from "translations/en.json";
      
      import editorEn from "neetofilters/app/javascript/src/translations/en.json";
      
      import { mergeDeepLeft } from "ramda";
      
      initializeApplication({
        translationResources: { en: { translation: mergeDeepLeft(editorEn, en) } },
      });
      

Instructions for Publishing

Package Release Process

A package is released upon merging a PR labeled as patch, minor, or major into the main branch. The patch label addresses bug fixes, minor signifies the addition of new features, and major denotes breaking changes, adhering to the principles outlined in Semantic Versioning (SemVer).

You can checkout the Create and publish releases workflow in GitHub Actions to get a live update.

Manual Package Publishing

If you missed adding the label, you can manually publish the package. For that first, you need to create a PR to update the version number in the package.json file and merge it into the main branch. After merging the PR, you need to create a new GitHub release from the main branch. Whenever a new release is created with a new version number, the GitHub actions will automatically publish the built package to npm. You can check out the Publish to npm workflow in GitHub Actions to get a live update.

Note: before publishing the package, you must verify the functionality in host application locally.

Documentation

Read the docs here: https://neeto-editor.neeto.com.

版本与发布记录

@bigbinary/neeto-editor 共发布 738 个版本,首次发布于 2021/08/30;过去 12 个月发布了 88 个版本。

版本发布日期距今
1.47.157latest2026/10/071 个月前
1.47.1562026/10/071 个月前
1.47.1552026/10/061 个月前
1.47.1542026/10/061 个月前
1.47.1532026/09/281 个月前
1.47.1522026/09/261 个月前

其他发布通道:beta → 1.47.152-beta2。

关于 @bigbinary/neeto-editor 的常见问题

@bigbinary/neeto-editor 是什么?

neetoEditor is the library that drives the rich text experience in all neeto products built at BigBinary

如何安装 @bigbinary/neeto-editor?

在项目目录运行 npm install @bigbinary/neeto-editor,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:qs(6.11.2)、yjs(^13.6.18)、yup(^0.32.11)、antd(4.24.3)、util(0.12.5)、axios(1.15.0)、ramda(^0.29.1)、react(^18.2.0)、formik(^2.4.5)、i18next(^23.6.0)、zustand(4.3.2)、tippy.js(6.3.7)、dompurify(^2.4.0)、js-logger(^1.6.1)、react-dom(^18.2.0)、classnames(^2.3.2)、emoji-mart(5.2.2)、autoprefixer(10.4.16)、lucide-react(^0.577.0)、react-helmet(^6.1.0)、ua-parser-js(^2.0.3)、linkify-react(^4.1.3)、react-i18next(^13.3.1)、@babel/runtime(7.23.2)、@tippyjs/react(4.2.6)、react-colorful(5.6.1)、react-dropzone(14.3.8)、react-toastify(^8.2.0)、avvvatars-react(0.4.2)、react-resizable(3.0.4)、react-router-dom(^5.3.4)、@bigbinary/neetoui(*)、@honeybadger-io/js(^6.5.3)、@rails/actioncable(7.2.100)、react-drag-listview(2.0.0)、@rails/activestorage(7.0.8-3)、@bigbinary/neeto-cist(*)、@honeybadger-io/react(^6.1.9)、@tanstack/react-query(5.59.20)、@bigbinary/neeto-atoms(1.0.144)、@bigbinary/neeto-icons(*)、@bigbinary/neeto-hotkeys(1.0.4)、@bigbinary/neeto-molecules(5.5.2)、@bigbinary/neeto-time-zones(*)、@bigbinary/babel-preset-neeto(*)、@tailwindcss/container-queries(^0.1.1)、@bigbinary/neeto-commons-frontend(>=4.13.126)、@bigbinary/neeto-filters-frontend(3.3.1)、@wojtekmaj/react-timerange-picker(5.5.0)、@bigbinary/neeto-team-members-frontend(5.1.6)、@bigbinary/neeto-image-uploader-frontend(4.0.5)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@bigbinary/neeto-editor 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bigbinary/neeto-editor 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@bigbinary/neeto-editor 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.13。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bigbinary/neeto-editor 可以商用吗?

@bigbinary/neeto-editor 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bigbinary/neeto-editor 的下载量有多少?

根据 npm 官方下载统计,@bigbinary/neeto-editor 在 2026/10/08 – 2026/11/06 这 30 天内被下载 2,071 次,日均约 69 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bigbinary/neeto-editor 还在维护吗?

最新版本 1.47.157 发布于 2026/10/07(1 个月前);至今共发布 738 个版本,其中过去 12 个月发布了 88 个;首次发布于 2021/08/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。