Releases: aieditor-team/AiEditor
Releases · aieditor-team/AiEditor
v1.4.0
- feat: Added video attributes autoplay, loop, muted, preload
- feat: Upgraded related dependencies to the latest version
- fix: Fixed the issue that the video does not display in read-only mode
- fix: Fixed the issue that the video attributes poster and controls do not take effect
- fix: In the code block, the issue that the pasted code does not display
- fix: fixed when pasting images in a table, the table is lost when data is backfilled
- 新增:新增视频属性 autoplay, loop, muted, preload
- 优化:升级相关依赖到最新版本
- 修复:修复只读模式下,视频不显示的问题
- 修复:修复视频属性 poster、controls 不生效问题
- 修复:在代码块中,粘贴代码不显示的问题
- 修复:在 table 内粘贴图片时,当数据回填的时候 table 丢失的问题
v1.3.9
- fix: fixed paste in new line if pasteAsText options enable
- fix: fix: fixed Uncaught RangeError: Invalid content for node tableCell:
<> - fix: Fix the problem that
p>imgis lost when pasting source code without HTML processing - fix: Fix the problem that
p>imgis lost when setContent is not processed with HTML - fix: Pasting in a new line in some cases
- docs: Modify the level of pasteAsText in the basic configuration sample code. There is no pasteAsText under the AiEditorOptions type
- 修复: 修复源代码粘贴没有进行 html 处理导致
p>img丢失问题 - 修复: 修复 setContent 没有进行 html 处理导致
p>img丢失等问题 - 修复: 粘贴表格出现 RangeError: Invalid content for node tableCell:
<>错误的问题 - 修复:粘贴时在某些情况下会粘贴在新行的问题
- 文档: 修改基础配置 示例代码中的 pasteAsText 的层级。AiEditorOptions 类型下没有 pasteAsText
v1.3.6
- feat: Added alwaysEnabledToolbarKeys configuration to specify that certain buttons are always enabled
- feat: Optimized the AI command menu to make its code more concise
- feat: aie-undo duplicate definition problem
- fix: When selecting an existing image in the editor first and then inserting another image, the "Applying a mismatched transaction" error appears
- fix: Fixed some typos in AI prompt words that may cause AI to misunderstand
- fix: Image configuration defaultSize does not work
- fix: Code block does not wrap after AI automatically comments
- 新增:添加 alwaysEnabledToolbarKeys 配置,用于指定某些按钮永远处于不被禁用
- 优化:优化 AI 命令菜单,使其代码更加简洁
- 优化:aie-undo 重复定义的问题
- 修复:当先选择编辑器里已存在的图片,再插入一张图片时,出现 "Applying a mismatched transaction" 错误
- 修复:修复 AI 提示词的一些错别字,可能导致 AI 理解错误的问题
- 修复:图片配置 defaultSize 不起作用的问题
- 修复:代码块通过 AI 自动注释之后代码不换行问题修改
v1.3.5
- feat: Optimize the experience and cancel the pop-up of the floating menu in the code block
- feat: Optimize the tools and methods such as organizeHTMLContent
- feat: In read-only mode, do not disable the "Print" and "Full Screen" buttons
- fix: taskList cannot be converted to markdown, and taskList of markdown cannot be converted to html
- fix: The problem that the strikethrough in html cannot be converted to
~~ - fix: Fix the problem that removeEmptyParagraphs accidentally deletes images in some cases
- 优化: 优化体验,取消浮动菜单在代码块的弹出
- 优化:优化 organizeHTMLContent 等工具方法
- 优化:在只读模式下,不禁用 “打印” 和 “全屏” 按钮
- 修复:taskList 无法转换为 markdown,markdown 的 taskList 也无法转换为 html 的问题
- 修复:html 中的删除线无法转换为
~~的问题 - 修复:修复 removeEmptyParagraphs 在某些情况下误删图片的情况
v1.3.4
- feat: Added custom color and color selection functions to the highlight block
- feat: htmlUtil added createElement method
- feat: AIMenu added onClick configuration support
- feat: Added onFullscreen event listener configuration support
- feat: Optimize InnerEditor's options assignment
- feat: Optimize markdown's parsing of highlight blocks
- feat: Optimize AIMenu's default prompt words
- fix: The problem of inserting content in the click event of the custom image in the toolbar reported an error
- fix: The event of AiCommand is undefined
- fix: The mention function cannot display the label
- 新增:高亮块新增自定义颜色和选择颜色的功能
- 新增:htmlUtil 添加 createElement 方法
- 新增:AIMenu 添加 onClick 配置的支持
- 新增:添加 onFullscreen 的事件监听的配置支持
- 优化:优化 InnerEditor 的 options 赋值
- 优化:优化 markdown 对高亮块的解析
- 优化:优化 AIMenu 的默认提示词
- 修复:在工具栏的自定义图片的点击事件插入内容报错的问题
- 修复:AiCommand 的 event 为 undefined 的问题
- 修复:提及(mention)功能无法显示 label 的问题
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 修改为可选配置,当不填写时不弹出显示