Skip to content

Releases: imzbf/md-editor-rt

v5.3.0

20 Feb 09:19
Compare
Choose a tag to compare

新增特性

  • 🌟 新增 onRemount 事件。
  • 🌟 新增代码块工具扩展属性 Demo
  • 🌟 MdEditor组件新增 catalogLayout 属性。
  • 🌟 支持编辑区域与目录的互动。

重构

  • ⭐️ 没有预览区域时,滚动条始终存在问题。

修复问题

  • 🐞 只有编辑区域时目录状态同步错误。

New Features

  • 🌟 Added event onRemount.
  • 🌟 Added toolbar extension attribute extraTools for code blocks, Demo.
  • 🌟 New attribute catalogLayout for MdEditor.
  • 🌟 Synchronization of states between the catalog and the editing area.

Refactor

  • ⭐️ Scroller is still here when there is no preview area.

Fixed Bugs

  • 🐞 Catalog status sync not working when only the editing area is present.

v5.2.3

17 Feb 05:38
Compare
Choose a tag to compare

修复问题

  • 🐞 样式文件中存在未替换的scss变量

Fixed Bugs

  • 🐞 There are un-replaced SCSS variables in the style file.

v5.2.2

07 Feb 06:28
Compare
Choose a tag to compare

重构

  • ⭐️ 替换内容的逻辑,以及将多行内容标记为列表的能力。

Refactor

  • ⭐️ The logic for replacing content, and ability to mark multiple lines of content as list.

v5.2.1

13 Jan 01:09
Compare
Choose a tag to compare

修复问题

  • 🐞 使用react@19时,无法正确拖拽调整宽度(#197)(#198)。

Fixed Bugs

  • 🐞 Unable to drag and resize width when using react@19(#197)(#198).

v5.2.0

09 Jan 08:34
Compare
Choose a tag to compare

新增特性

  • 🌟 导出prefix
  • 🌟 向扩展组件动态添加showToolbarName属性。

修复问题

  • 🐞 当拖拽调整宽度时,拖拽状态可能无法释放(#197)。
  • 🐞 当组件销毁后,无法被取消的异步任务还在访问已经销毁的状态。
  • 🐞 未正确处理扩展组件的disabled属性。

New Features

  • 🌟 Export prefix.
  • 🌟 Add showToolbarName to the expansion component actively.

Fixed Bugs

  • 🐞 When dragging to adjust width, it might be impossible to release the drag state(#197).
  • 🐞 When component is destroyed, asynchronous task that couldn't be stopped accessed the state that had
    already been destroyed.
  • 🐞 Not handled extension component's disabled property.

v5.1.1

17 Dec 01:43
Compare
Choose a tag to compare

修复问题

  • 🐞 无标题且滚动时,MdCatalog组件会显示之前缓存的目录(#194)。

New Features

  • 🐞 Untitled, and when scrolling, MdCatalog component will display the last cached catalog(#194).

v5.1.0

13 Dec 05:53
Compare
Choose a tag to compare

新增特性

  • 🌟 属性disabled现在对工具栏生效了。

重构

  • ⭐️ 目录现在不受工具栏项限制。
  • ⭐️ 使用default 插槽替换部分trigger插槽。

修复问题

  • 🐞 复制代码按钮的类型定义不正确。

New Features

  • 🌟 Attribute disabled is now effective for the toolbar.

Refactor

  • ⭐️ Catalog is not restricted by the toolbar.
  • ⭐️ Replace part of trigger slot with default slot.

Fixed Bugs

  • 🐞 Icon type definition for copy code is incorrect.

v5.0.2

19 Nov 08:38
Compare
Choose a tag to compare

修复问题

  • 🐞 忽略了以两个$开头的案例。

Fixed Bugs

  • 🐞 Omitted the case starting with two $.

v5.0.1

15 Nov 06:04
Compare
Choose a tag to compare

重构

  • ⭐️ 当块级公式被文本包围时,将被视为内联公式。

Refactor

  • ⭐️ Block-level formulas will be treated as inline when surrounded by text.

v5.0.0

13 Nov 09:04
Compare
Choose a tag to compare

新增特性

  • 🌟 导出 clearSideEffects文档

重构

  • ⭐️ 使用 lucide 替换默认的图标,移除了 noIconfont 相关属性。
  • ⭐️ 使用 id 替换 editorId 属性(仅 MdEditorMdPreview ),使用 useId 获取默认值(你需要使用react@18以上)。
  • ⭐️ 导出 XSSPlugin, 不再默认添加 XSS 扩展到组件,示例
  • ⭐️ 优化 MdCatalog 组件,新增指示器。

修复问题

  • 🐞 命名错误,以前:inputBoxWitdh,现在:inputBoxWidth

New Features

  • 🌟 Export clearSideEffects, Docs.

Refactor

  • ⭐️ Replace editorId property with id(only MdEditor and MdPreview), use useId to get default value(you need to use react@18 or above).
  • ⭐️ Export XSSPlugin, no longer include XSS protection by default, Example.
  • ⭐️ Use lucide to replace default icons, remove attribute noIconfont.
  • ⭐️ Optimize component MdCatalog, add indicator.

Fixed Bugs

  • 🐞 Naming error, previously: inputBoxWitdh, now: inputBoxWidth.