Neeto 编辑器
需要编辑纳米包括:
neeto-editor-engine: 管理资产上传到
需要编辑。 每个上传资产都将与一个组织相关联.
除了管理资产外,它确实
还有几件事情。 。 。 .
@bigbinary/neeto-editor-frontend: 驱动丰富文本的库
经验 产品 建造于
大边形。 。 。 .
目录
- 安装
- 使用量
- 发展指示
- 出版说明
- 文档
安装
后端
- 在您的应用程序的 Gemfile 中添加以下一行:
source "NEETO_GEM_SERVER_URL" do
# ..existing gems
gem "neeto-editor-engine"
end
- 执行以下命令:
bundle install
- 添加以下一行为
config/routes.rb 要挂载引擎的文件
/neeto_editor 路线.
mount NeetoEditorEngine::Engine, at: "/neeto_editor"
- 添加以下一行为
models/organization.rb 文档.
has_many :neeto_editor_assets, class_name: "NeetoEditorEngine::Asset", dependent: :destroy
- 执行以下命令以生成迁移以生成
neeto_editor_engine_assets 页:1.
rails g neeto_editor_engine:install:migrations
- 运行迁移.
rails db:migrate
前端
yarn add @bigbinary/neeto-editor-frontend
用于设置图像上传参考
https://neeto-editor.neeto.com/?path=/docs/examples-customize-options-addons-addons. 页面存档备份,存于互联网档案馆.
使用量
用户
-
trim_empty_lines: 此乌提尔被添加到 String 课。 会有帮助的
您可以删除正后方的空行.
str = "<p></p><h1></h1><br><h1>Hello world</h1><h1></h1><span></span>"
str.trim_empty_lines # <h1>Hello world</h1>
-
sanitize: Sanitizes 编辑器 HTML用于安全服务器侧渲染. 用途
Rails::HTML::PermitScrubber 带有标签和属性的许可列表
匹配编辑器的输出。 保存 CSS 变量 (% 1)--custom-property
财务报告和审定财务报表 var())并验证iframe src 域(YouTube、Vimeo、Loom、,
(原始内容存档于2017-10-12). Neeto Record, SupaDemo.
NeetoEditorEngine.sanitize(html)
发展指示
通过执行以下命令安装所有依赖性 .
yarn
运行 yarn storybook 命令启动故事本应用程序。 使用这个
用于测试更改的应用程序.
当开发前端软件包时,测试活的改变至关重要
使用主机应用程序的环境。 这样做有两种方法:
-
使用 yalc 包管理器 : https://youtu.be/F4zZFnrNTq8 请检查isbn=值 (帮助)
-
直接更新主机应用程序的节点 模块.
-
启动主机应用程序服务器 .
-
在软件包内,执行命令:
yarn build --watch --app ../neeto-site-web
这里替换 ../neeto-site-web 带有主机项目的路径。 现在,任何
对 netoEditor 代码库所作的修改将立即反映在
联合调查组.
-
在主机应用程序中运行以下命令以重置到
初始状态.
yarn install --check-files
出版指令
咨询
构建和释放软件包
关于如何出版的详细指南.
文档
在此读取前端文件 : https://neeto-editor.neeto.com (中文(简体) )。 。 。 .
关于 @bigbinary/neeto-editor-frontend 的常见问题
@bigbinary/neeto-editor-frontend 是什么?
needo Editor是驱动 BigBinary 所建所有 Needo 产品的丰富文本体验的图书馆
如何安装 @bigbinary/neeto-editor-frontend?
在项目目录运行 npm install @bigbinary/neeto-editor-frontend,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:qs(6.16.2)、yjs(13.6.20)、yup(0.32.11)、antd(5.22.1)、util(^0.12.5)、axios(1.20.0)、ramda(0.29.0)、react(18.3.1)、formik(2.4.6)、i18next(22.5.1)、zustand(4.4.2)、tippy.js(6.3.7)、dompurify(3.4.17)、js-logger(1.6.1)、react-dom(18.3.1)、classnames(2.5.1)、emoji-mart(5.6.0)、autoprefixer(10.4.16)、lucide-react(^0.577.0)、react-helmet(^6.1.0)、ua-parser-js(^2.0.3)、framer-motion(11.2.14)、linkify-react(4.3.2)、react-i18next(12.3.1)、@babel/runtime(7.29.7)、@tippyjs/react(4.2.6)、react-colorful(5.6.1)、react-dropzone(14.3.8)、react-toastify(8.0.2)、avvvatars-react(0.4.2)、react-resizable(3.0.5)、react-router-dom(5.3.3)、@bigbinary/neetoui(8.8.3)、@honeybadger-io/js(6.10.1)、@rails/actioncable(7.2.100)、react-drag-listview(2.0.0)、@rails/activestorage(7.0.8-3)、@bigbinary/neeto-cist(1.0.17)、@honeybadger-io/react(6.1.25)、@tanstack/react-query(5.59.20)、@bigbinary/neeto-atoms(1.1.8)、@bigbinary/neeto-icons(1.20.89)、@bigbinary/neeto-hotkeys(1.0.9)、@bigbinary/neeto-molecules(5.12.6)、@bigbinary/neeto-time-zones(0.8.26)、@bigbinary/babel-preset-neeto(*)、@tailwindcss/container-queries(^0.1.1)、@tanstack/react-query-devtools(5.59.20)、@bigbinary/neeto-commons-frontend(4.15.0)、@bigbinary/neeto-filters-frontend(4.7.1)、@wojtekmaj/react-timerange-picker(5.5.0)、@bigbinary/neeto-team-members-frontend(5.3.4)、@bigbinary/neeto-image-uploader-frontend(4.2.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。
@bigbinary/neeto-editor-frontend 支持 TypeScript 吗?
支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。
@bigbinary/neeto-editor-frontend 支持 ESM 还是 CommonJS?
同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。
@bigbinary/neeto-editor-frontend 需要什么版本的 Node.js?
package.json 的 engines 字段要求 Node.js >=22.13。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。
@bigbinary/neeto-editor-frontend 可以商用吗?
@bigbinary/neeto-editor-frontend 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。
@bigbinary/neeto-editor-frontend 的下载量有多少?
根据 npm 官方下载统计,@bigbinary/neeto-editor-frontend 在 2026/10/08 – 2026/11/06 这 30 天内被下载 43,675 次,日均约 1,456 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。
@bigbinary/neeto-editor-frontend 还在维护吗?
最新版本 2.7.1 发布于 2026/11/06(1 天前);至今共发布 43 个版本,其中过去 12 个月发布了 43 个;首次发布于 2026/10/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。