npm md-editor-v3 2.5.0
v2.5.0

latest releases: 6.2.1, 6.2.0, 6.1.1...
3 years ago

⭐️ 新增特性:

  • ⭐️ codeStyleReverse 属性。代码块为暗色背景的预览主题,自动将代码风格设置为暗色风格。
  • ⭐️ codeStyleReverseList 属性。代码块为暗色背景的预览主题。
  • ⭐️ 挂载实例属性(文档):
    • ⭐️ on :监听编辑器内部状态,包括:屏幕全屏、浏览器全屏、预览文本、预览 html、目录等。
    • ⭐️ togglePageFullscreen :切换页面内全屏。
    • ⭐️ toggleFullscreen :切换屏幕全屏。
    • ⭐️ togglePreview :切换是否显示预览。
    • ⭐️ toggleHtmlPreview :切换是否显示 html 预览。
    • ⭐️ toggleCatalog :切换是否显示目录。
    • ⭐️ triggerSave :触发保存。
    • ⭐️ insert:手动向文本框插入内容,通常用于定义组件,快速向编辑框插入指定内容。

🌟 重构:

  • ⚠️ 语言设置,移除linkModalTips.title,新增linkModalTips.linkTitlelinkModalTips.imageTitlelable关键词调整为label(@Tofandel )。
  • 🌟 解构previewOnlyeditorIdnoKatexnoMermaidnoPrettiernoUploadImgnoIconfont,这类属性只支持设置默认值。
  • ⚠️ 在线的图标库替换:[https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js]。(https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js)。
  • 🌟 mermaid 转换错误提示方式调整为显示错误信息。
  • 🌟 升级编辑器部分依赖库:cropperjs、marked、medium-zoom、mermaid、prettier (#190 )。
  • 🌟 部分html标签语义化 (相关内容)。

🐞 修复:

  • 🐞 设置了noPrettier之后无法使用部分快捷键(#187 )。
  • 🐞 设置了noUploadImg之后仍然加载了 cropper(#187 )。
  • 🐞 mermaid 图表过大时内容显示不正常。

⭐️ New Feature:

  • ⭐️ Prop codeStyleReverse. Code style will be reversed to dark while code block of the theme has a dark background.
  • ⭐️ Prop codeStyleReverseList . Themes to be reversed.
  • ⭐️ Exposed properties(Documentation):
    • ⭐️ on : Get the internal state of the editor, including pageFullscreen, fullscreen, preview, htmlPreview, catalog, etc.
    • ⭐️ togglePageFullscreen : Toggle status of fullscreen within the page.
    • ⭐️ toggleFullscreen : Toggle status of fullscreen widthin browser.
    • ⭐️ togglePreview : Toggle status of preview.
    • ⭐️ toggleHtmlPreview : Toggle status of htmlPreview.
    • ⭐️ toggleCatalog : Toggle status of catalog.
    • ⭐️ triggerSave
    • ⭐️ insert: Manually insert content into textarea. It is usually used to define components and quickly insert content into the textarea.

🌟 Refactor:

  • ⚠️ Type of language, remove linkModalTips.title, add linkModalTips.linkTitle and linkModalTips.imageTitle; correct key lable to label(@Tofandel ).
  • 🌟 Destructuring props previewOnlyeditorIdnoKatexnoMermaidnoPrettiernoUploadImgnoIconfont, they can be set to default value only.
  • ⚠️ Update iconfont: [https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js].(https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js)。
  • 🌟 Adjust the way to show running error of mermaid.
  • 🌟 Upgrade dependencies of editor: cropperjs, marked, medium-zoom, mermaid, prettier (#190 )。
  • 🌟 Use semantic html tags (commit).

🐞 Fix:

  • 🐞 Shortcut key cannot be triggered correctly while noPrettier is set (#187 ).
  • 🐞 Cropper is still loaded while noUploadImg is set to true (#187 ).
  • 🐞 Block of Git Graph appeared as an anomaly.

Don't miss a new md-editor-v3 release

NewReleases is sending notifications on new releases.