Releases: aieditor-team/AiEditor
Releases · aieditor-team/AiEditor
v1.3.3
- feat: Add link configuration to images
- feat: Add alt, title and other attribute configuration to images
- feat: Add onClick configuration support to AIMenu
- fix: When migrating edited data from wangEditor to AIEditor, some images are not displayed
- fix: When there are multiple editor instances on the same page, the number of characters counted is inaccurate
- fix: When the menu is in the active state, the corners are not rounded.
- fix: fix parse init html error if the content is text only
- doc: update ai command docs
- doc: update comment docs
- 新增:图片添加链接配置的功能
- 新增:图片添加 alt、title 等属性配置的功能
- 新增:AIMenu 添加 onClick 配置的支持
- 修复:wangEditor 编辑数据迁移到 AIEditor 时,某些图片不显示的问题
- 修复:当同一个页面存在多个编辑器实例时,右下角统计字符数不准确
- 修复:菜单在 active 的状态时,不是圆角的。
- 修复:修复当初始化内容为存文本时 html 解析错误的问题
- 文档:更新 ai command 的相关文档
- 文档:更新评论(批注)的相关文档
v1.2.9
- feat: Added changeTheme() method for dynamic theme switching
- feat: Optimized the color variables related to dark and light themes
- feat: Adjusted the size of emoji to use the toolbarSize configuration
- feat: Optimized the related tool methods of htmlUtil and mdUtil
- fix: When getting markdown, the image content cannot be correctly converted to markdown
- fix: When getting markdown, the table cannot be correctly converted to markdown in some cases
- 新增:添加 changeTheme() 方法,用于动态切换主题
- 优化:优化暗色与亮色主题的相关颜色变量
- 优化:调整 emoji 的大小以在使用 toolbarSize 的配置
- 优化:优化 htmlUtil 和 mdUtil 的相关工具方法
- 修复:获取 markdown 时,图片内容无法正确转换为 markdown
- 修复:获取 markdown 时,表格在某些情况下无法正确转换为 markdown
v1.2.8
- feat: Added support for the Shift-Tab de-indentation shortcut key in code blocks
- feat: Added support for the
:::
syntax of Markdown - feat: Updated related dependencies to the latest version
- feat: Modified the model in OpenaiModelConfig to be required
- fix: The editor cannot be selected when editing is prohibited under the Android operating system
- fix: When inserting an empty ordered list, it cannot be inserted
- fix: The markdown content output by AI cannot be inserted correctly
- doc: Updated some description errors in the document
- doc: Corrected the configuration errors related to openai in the document
- 新增:代码块添加 Shift-Tab 取消缩进快捷键的支持
- 新增:添加 Markdown 的
:::
语法的支持 - 优化:更新相关依赖到最新版本
- 优化:修改 OpenaiModelConfig 中的 model 为必填
- 修复:编辑器在 Android 操作系统下,且禁止编辑时无法选择的问题
- 修复:当插入一个空的有序列表时,无法被插入的问题
- 修复:AI 输出的 markdown 内容无法被正确插入的问题
- 文档:更新文档的一些描述错误
- 文档:修正文档关于 openai 的相关配置错误
v1.2.7
- fix: When configuring contentIsMarkdown, it may affect the reload problem
- fix: When markdown parses images, the images will be wrapped in p tags, resulting in incorrect parsing
- fix: The problem of prompting domain errors when using spark lite models
- feat: Openai has added a customUrl configuration function to facilitate users to customize the configuration URL
- feat: When there is an empty p tag in the table, its height is incorrect
- feat: Upgrade related dependencies to the latest version
- 修复: 当配置 contentIsMarkdown 时,可能会影响再次加载的问题
- 修复: markdown 在解析图片时,图片会被 p 标签包裹导致无法正确解析的问题
- 修复:使用 spark lite 模型提示 domain 错误的问题
- 优化: openai 新增 customUrl 配置的功能,方便用户自定义配置 url
- 优化:table 中存在空的 p 标签时,其高度不正确的问题
- 优化:升级相关依赖到最新版本
v1.2.6
- fix: Fixed the line break issue when AI translation and AI output replacement content
- fix: Fixed the issue of not being able to select content on Android devices (IOS does not have this problem)
- feat: The title of the menu group is changed to an optional configuration, and will not pop up when it is not filled in
- 修复: 修复 AI 翻译、AI 输出替换内容时换行的问题
- 修复: 修复在 Android 设备下无法选择内容的问题(IOS 没有这个问题)
- 优化:菜单组的 title 修改为可选配置,当不填写时不弹出显示
v1.2.5
v1.2.3
- feat: added more language files for i18n
- feat: custom ai model support http ReadableStream
- feat: Added toolbarSize to control toolbar button size
- fix: When the editor editable is false, disable the toolbar
- chore: update dependencies
- chore: optimize styles
- 新增: 新增更多的语言支持,目前已经支持 中文、英文、德语、葡萄牙语、西班牙语、印度语、印尼语、日语、韩语、泰语、越南语
- 新增: 自定义大语言模型支持 http ReadableStream
- 新增: 添加 toolbarSize 配置用于控制工具栏按钮的大小
- 修复: 当编辑器设置 editable 为 false, 禁用工具栏
- 优化: 更新依赖到最新版本
- 优化: 优化样式细节
v1.2.1~v1.2.2
- feat: add new option "textCounter"
- feat: add temperature and maxTokens config for aiModel
- refactor: optimize paste extensions and add new option "removeEmptyParagraphs" for paste
- refactor: Optimize ClassNameExt to make the new paragraph does not carry the className of the previous
- refactor: remove align attribute in image
- refactor: use div replace p to wrapper image
- refactor: remove empty value attributes
- fix: image can not show in edit disable
- fix: image border is 1px smaller after resizing
- fix: SparkAiModel error if use v1.1
- 新增: 添加新的配置 "textCounter" 用于自定义文字数量的统计
- 新增: AI 新增 temperature 和 maxTokens 的配置功能
- 优化: 粘贴的功能添加新的 "removeEmptyParagraphs" 配置,用于移除空段落
- 优化: 优化 ClassNameExt 插件,使之在新的段落里不携带上一个段落的 class 名称
- 优化: 图片移除 align 属性,否则可能发生样式错误的问题
- 优化: 使用 div 替代 p 包裹图片
- 优化: 图片移除空属性值的属性
- 修复: 图片无法在只读模式下显示的问题
- 修复: 图片在拖拽大小后,其宽度会小 1px 的问题
- 修复: 星火大模型无法使用其最低版本 v1.1 的问题
v1.2.0
- feat: Enhanced pasting from Excel, WPS, LibreOffice, Number, and Tencent Docs table content
- feat: add new options "image.bubbleMenuEnable"
- feat: add "htmlPasteConfig.clearLineBreaks" options
- refactor: refactor markdown features
- refactor: add "finished" flag to the SmoothAppender
- refactor: "pasteAsText" feature not remove the "p" tag
- refactor: rename "removeHtmlTag" to htmlUtil
- refactor: optimize textSelectionBubble
- refactor: optimize createAiClient() in AI models
- refactor: optimize initToolbarKeys.ts
- refactor: optimize SparkAiModel.ts
- fix: OpenaiAiModel parse message error sometimes
fix: fixed " " will be attached sometime if pastedAsText config enable
- feat: 增强来至于 Excel, WPS, LibreOffice, Number 和 腾讯文档的表格粘贴功能
- feat: 添加新的配置 "image.bubbleMenuEnable"
- feat: 添加新的配置 "htmlPasteConfig.clearLineBreaks"
- refactor: 重构 markdown 的相关功能
- refactor: 优化 SmoothAppender 输入时间过长的问题
- refactor: 优化 "pasteAsText" 功能保留 "p" 标签不被移除
- refactor: 重命名 "removeHtmlTag" 为 htmlUtil
- refactor: 优化 textSelectionBubble
- refactor: 优化 createAiClient() 方法
- refactor: 优化 initToolbarKeys.ts
- refactor: 优化 SparkAiModel.ts
- fix: 修复 OpenaiAiModel 的消息在某些情况下解析错误的问题
fix: 修复在 pastedAsText 配置的情况下," " 会被粘贴的问题
v1.1.7
- 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 插件的名称