AiEditor

AiEditor is a next-generation rich text editor for AI.

LGPL-2.1 License

Downloads
2.7K
Stars
935
Committers
13

Bot releases are hidden (Show)

AiEditor -

Published by yangfuhai 13 days ago

  • feat: add SmoothAppender for textarea
  • refactor: optimize AiEditor.onTransaction() method
  • refactor: rename "PasteExt" extension Name to adapter v2.8.0
  • refactor: optimize BubbleMenuPlugin.ts
  • refactor: update linkBubbleMenu pluginKey's name

  • 新增: 新增 SmoothAppender 使得 AI 输入更加湿滑
  • 优化: 优化 AiEditor.onTransaction() 的相关代码
  • 优化: 重命名 "PasteExt" 插件的名称以适配 v2.8.0
  • 优化: 优化 BubbleMenuPlugin.ts 的核心逻辑
  • 优化: 重命名 linkBubbleMenu 插件的名称
AiEditor -

Published by yangfuhai 23 days ago


  • 优化:当点击 emoji 表情的时候,隐藏 emoji 面板
  • 优化:Html 粘贴添加更多的配置功能
  • 优化:为翻译面板的操作按钮添加统一的图标
  • 修复:通过快捷键 CMD+A 全选时,无法弹出选择操作浮动菜单的问题
AiEditor -

Published by yangfuhai 25 days ago

  • refactor: optimize textSelectionBubbleMenu only update at the mouseup event
  • refactor: update dependencies
  • fix: fixed the translated buttons would trigger form submission

  • 优化:优化文字选中弹出菜单仅在鼠标松开的时候进行弹出
  • 优化:更新相关依赖到最新版本
  • 修复:修复翻译的按钮会触发表单提交的问题
AiEditor -

Published by yangfuhai 26 days ago

  • feat: add ClassName extension for custom node class attribute
  • feat: add custom AI icon in bubble menu
  • refactor: refactor translate bubble menu
  • refactor: refactor ai bubble panel
  • refactor: add more common emojis

  • 新增:新增 ClassName 插件,用于自定义节点的 class 样式
  • 新增:添加自定义泡泡菜单的 AI ICON 的功能
  • 优化:重构 翻译 功能的交互逻辑
  • 优化:重构 AI 弹出菜单的交互细节
  • 优化:添加更多场景的 emoji 表情
AiEditor -

Published by yangfuhai 28 days ago

  • feat: add translate bubble menu items
  • feat: add "pasteAsText" config support
  • feat: add de and pt langs, thanks to @TobiasKrais
  • feat: add Emoji config support
  • fix: fix GiteeAiModel parse ai message error
  • refactor: optimize AiEditor.ts and Header.ts
  • refactor: optimize styles in Emoji.ts/Heading.ts/AbstractDropdownMenuButton.ts, thanks to @TobiasKrais
  • refactor: optimize ai panel position
  • chore: create npm-publish.yml
  • chore: remove comment code

  • 新增: 浮动菜单新增翻译功能,以及自定义翻译语言
  • 新增: 新增 "pasteAsText" 配置的功能,在粘贴时自动清除样式
  • 新增: 新增德语和葡萄牙语的配置,感谢 @TobiasKrais
  • 新增: 新增 emoji 自定义配置的功能
  • 修复: 修复 GiteeAiModel 在某些情况下解析错误的问题
  • 优化: 优化 AiEditor.ts 及 Header.ts 代码
  • 优化: 优化 Emoji.ts/Heading.ts/AbstractDropdownMenuButton.ts 的样式代码, @TobiasKrais
  • 优化: 优化 文字选中以及 ai 弹出菜单的位置
  • 优化: 创建 npm-publish.yml 用于自动发布的功能
  • 优化: 上传部分注释代码
AiEditor - Latest Release

Published by yangfuhai about 1 month ago

  • feat: Increase the indent to 2em instead of 10px
  • feat: add FontSize defaultValue config
  • feat: add "align" config with image from server response.
  • feat: add server response to config the image and video width
  • feat: add custom to set lineHeights support
  • feat: add "toolbarExcludeKeys" config
  • feat: add resize button in the image bubble menus
  • refactor: optimize AbstractDropdownMenuButton.ts height to "fit-content"
  • fix: fix the bubble menu is active in table or image
  • fix: AbstractDropdownMenuButton active index error when aieditor init
  • fix: TableBubbleMenu can not show when double-click the cell
  • fix:fix the image Bubble Menus position not correct.
  • doc:add line height config docs
  • doc:add "toolbarExcludeKeys" config

  • 新增: 增加缩进改为 2em,而不是 10px
  • 新增: 新增默认字号大小的设置的功能
  • 新增: 修复表格或图片的浮动菜单点击选中的问题
  • 新增: 新增支持图片上传时,服务器返回图片的对其方式
  • 新增: 新增图片或视频上传时,服务器返回图片的宽度和高度
  • 新增: 新增自定义行高设置的功能
  • 新增: 新增通过 "toolbarExcludeKeys" 配置自定义排除菜单的功能
  • 新增: 新增图片浮动菜单可以快速调整图片大小为 50% 75% 100% 的功能
  • 优化: 设置 AbstractDropdownMenuButton 的高度为 "fit-content"
  • 修复: 图片和表格的浮动菜单,点击时会处于 “选中” 状态的问题
  • 修复: AbstractDropdownMenuButton 在初始化时,默认选中不正确的问题
  • 修复: 表格的单元格双击选中时无法弹出表格操作菜单的问题
  • 修复:图片弹出的操作浮动菜单不是 100% 居中的问题
  • 文档: 添加自定义行高设置的相关文档
  • 文档: 添加 "toolbarExcludeKeys" 配置的相关文档
AiEditor -

Published by yangfuhai about 1 month ago

  • feat: add "onClick" config support for ai menu to custom menu item click event.
  • feat: add commands() method for aieditor
  • fix: onCreateBefore for custom extensions
  • fix: remove console.log in gitee ai

  • 新增: 自定义 AI 菜单添加 "onClick" 配置的支持
  • 新增: AIEditor 对象添加 commands() 方法
  • 修复: onCreateBefore 自定义扩展不生效的问题
  • 修复: Gitee AI 有 console.log 打印的问题
AiEditor -

Published by yangfuhai about 2 months ago

feat: add menu group config support
refactor: optimize image export wrapper in "p" tag
refactor: rename "uploadFile" to "fileUploader"
refactor: define a "Uploader" type and refactor extensions
fix: fix spark ai can not support v4.0
fix: image pasted from web will insert two images
fix: lineHeight active is not correct.
fix: i18n config error:delete-table -> 删除表格


新增: 工具栏菜单自定义分组的功能
优化: 重构导出图片被 p 标签包裹
优化: 重命名 "uploadFile" 为 "fileUploader"
优化: 定义 "Uploader" 类型并重构相关插件
修复: 修复星火大模型无法使用 v4.0 的问题
修复: 修复粘贴从网络复制的图片会出现显示 2 张的问题
修复: 修复行高回显不正确的问题
修复: 修复国际化配置不正确的问题 delete-table -> 删除表格

AiEditor -

Published by yangfuhai 2 months ago

  • feat: codeBlock add languages and prompts config
  • feat: add demos for svelte
  • fix: img align not effective if export to html
  • chore: upgrade dependencies
  • doc: update source-code document
  • doc: add svelte docs

  • 新增:codeBlock 代码块添加自定义代码语言和 prompt 提示词的功能
  • 新增:添加 svelte 框架使用的 demo 示例
  • 修复:图片对其方式导出为 html 时不生效的问题
  • 文档:添加和 svelte 框架集成的相关文档
AiEditor -

Published by yangfuhai 3 months ago

  • feat: add AIPanelMenus config support
  • optimize: update video attribute controls
  • fix: AI Menus init error
  • docs: add Japanese README

  • 新增:新增 AIPanelMenus 配置的支持,用于配置 AI 泡泡菜单
  • 优化:优化视频节点的控制属性
  • 修复:修复 AI 菜单初始化错误的问题
  • 文档:新增日文的 readme
AiEditor -

Published by yangfuhai 4 months ago

  • Added: Added onBlur and onFocus configurations for AIEditor #39
  • Added: Added the function of customizing the selected floating menu
  • Added: Added the function of AIEditor.getAttributes() method
  • Optimization: Refactored the international display of AI panel
  • Optimization: Refactored AbstractBubbleMenu.ts to make it simpler and easier to use
  • Fixed: Fixed the problem of multiple additions of Header under KeepAlive of Vue #37

  • 新增:新增 AIEditor 的 onBlur 和 onFocus 配置 #39
  • 新增:新增自定义选中的浮动菜单的功能
  • 新增:新增 AIEditor.getAttributes() 方法的功能
  • 优化:重构 AI 面板的国际化显示
  • 优化:重构 AbstractBubbleMenu.ts 使之更加简单易用
  • 修复:修复 Vue 的 KeepAlive 下 Header 多次添加的问题 #37
AiEditor -

Published by yangfuhai 5 months ago

  • 新增:AI 大模型新增对 Openai 和 暗月之面 的支持
  • 新增:编辑元素新增对 Figure 和 Figcaption 元素的支持
  • 新增:AI Prompt 提示词自定义添加对 {content} 占位符的支持
  • 优化:修改星火大模型默认版本为 v3.5
  • 优化:重构自定义大模型 CustomAiModelConfig 的方法名称和参数
  • 优化:重命名 AI 模块里的某些方法和参数,使之更加通俗易懂
  • 优化:优化代码里的一些单词拼写错误
  • 优化:优化 AIEditor 内部的一些样式名称,防止产生可能的冲突
AiEditor - v1.0.4

Published by yangfuhai 5 months ago

v1.0.1 ~ v1.0.4

  • 新增:textSelectionBubbleMenu 添加开关配置的支持
  • 优化:在只读模式下,应该关闭掉选中文字菜单的弹出
  • 优化:当 AI 大模型配置错误的时候,给出更友好的错误提示
  • 优化:选中文字菜单时,自动判断弹出的菜单是否遮挡了顶部菜单,并在下方弹出
  • 优化:选中空白内容,但为选中任何文字时,错误的弹出操作菜单的问题
  • 优化:更新相关的依赖到最新版本
  • 优化:默认 AIEditor 导出更多的类,方便用户开发
  • 修复:AI 菜单在某些场景下出现错位的问题,感谢 @百小僧
  • 修复:图片、附件、视频的 uploadFormName 配置无效的问题
  • 修复:CodeBlock 的菜单无法正切换国际化的问题
  • 文档:添加和各类 UI 框架集成的相关文档
  • 文档:添加 React 对 AiEditor 的封装为组件的相关文档,感谢 @百小僧
AiEditor -

Published by yangfuhai 7 months ago

  • 新增:自定义大语言模型添加 headers 配置的支持
  • 优化:优化 ai 翻译的 prompt 内容,以保证能够正确翻译多国语言
  • 优化:移除代码中一些多余的日志输出
  • 修复:修正表格的弹出菜单在某些情况下无法正确弹出的问题
  • 文档:修正快速开始的 ai 配置不正确(未同步最新版本)的问题
  • 文档:添加关于自定义大模型的相关文档
AiEditor -

Published by yangfuhai 7 months ago

  • 新增:添加自定义对接任意大模型的支持
  • 新增:添加文心一言大模型的支持,感谢 @笨笨
  • 新增:星火大模型添加对 v3.5 的支持
  • 新增:AI 客户端新增 SSE 客户端的支持
  • 优化:AI 菜单,AI 命令添加自动选择大语言模型的支持
  • 文档:修正图片上传的示例错误代码
  • 文档:更新配置 models 的相关错误示例
AiEditor -

Published by yangfuhai 9 months ago

  • 新增:添加当 uploader 的 onUploadBefore 返回 false 时,中断文件上传
  • 新增:Ai 模块添加自定义 AiModelFactory 的配置,方便引用第三方 Ai 大模型
  • 优化:修改 AiEditor.insert 的参数为 any 类型
  • 优化:重命名 AiModelFactory 为 AiModelManager
  • 修复:修改全屏按钮在某些情况下不起作用的问题,感谢 @ashuicoder
  • 修复:高亮块、链接、引用获得焦点时,菜单没有被激活的问题
  • 修复:选中文字弹出菜单,菜单内的操作没有根据选择内容激活的问题
AiEditor - rc.5~rc.6

Published by yangfuhai 10 months ago

  • 新增:添加 onSave 的配置,可以用于监听用户按 ctrl + s 的保存操作
  • 新增:CustomMenu 添加 onCreate 方法,方便对自定义菜单进行初始化
  • 新增:添加 setContent() 以及 setEditable() 方法
  • 优化:修改 editable 配置为可选
  • 优化:添加 AiModelFactory 以及 SparkAiModel 导出
  • 优化:重构 AI 菜单功能及其 UI 样式
  • 优化:重构 / 弹出 UI 菜单样式以及交互方式
  • 优化:重写 AI 模块,重构 AI 抽象菜单
  • 修复:修改在 editable 为 false 下,代码块的 ai 功能依然可用的问题
  • 样式:@某某某 弹出的 UI 样式
  • 样式:优化 taskList 的 ui 样式
  • 文档:修正 onCreateClientUrl
  • 文档:添加只读模式的相关文档
  • 文档:更新 ai 配置的相关文档
AiEditor -

Published by yangfuhai 10 months ago

  • 修复:当 AiEditor 嵌入到 Form 时,点击某些按钮会触发 Form 提交的问题
  • 修复:从网页复制的内容粘贴到编辑器,图片无法被粘贴进来的问题
  • 修复:点击表格、图片时,会有多个弹出菜单位置冲突的问题
AiEditor -

Published by yangfuhai 10 months ago

  • 新增:自定义菜单添加 id 和 className 类名配置的支持
  • 新增:AiEditor 添加 onDestroy 监听的配置支持
  • 优化:上传组件重命名 onBeforeUpload 为 onUploadBefore
  • 修复:在 React 的 StrictMode 下,无法使用 AiEditor 自定义布局的问题
  • 文档:添加自定义布局的相关文档内容
AiEditor -

Published by yangfuhai 10 months ago

  • 新增:AI 功能添加选择文字时,对文字进行在定义 Prompt 操作的功能
  • 新增:添加选中文字内容时,弹出操作菜单的功能
  • 新增:AiEditor 添加 onCreateBefore 的钩子函数,方便初始化插件
  • 修复:同一个页面下,初始化多个 editor 实例时出错的问题
  • 修复:修复保持 html 后,通过 html 再次初始化编辑器无法准确解析视频组件的问题
  • 优化:重构 AbstractBubbleMenu.ts 的相关属性和逻辑
  • 优化:重构 ai 组件,使之能够适配更多的业务场景
  • 样式:优化编辑器诸多样式细节
  • 文档:添加链接配置 ref/class 等相关配置的文档
Package Rankings
Top 17.65% on Npmjs.org
Related Projects