⭐️ 新增特性:
- ⭐️
codeStyleReverse属性。代码块为暗色背景的预览主题,自动将代码风格设置为暗色风格。 - ⭐️
codeStyleReverseList属性。代码块为暗色背景的预览主题。 - ⭐️ 挂载实例属性(文档):
- ⭐️
on:监听编辑器内部状态,包括:屏幕全屏、浏览器全屏、预览文本、预览 html、目录等。 - ⭐️
togglePageFullscreen:切换页面内全屏。 - ⭐️
toggleFullscreen:切换屏幕全屏。 - ⭐️
togglePreview:切换是否显示预览。 - ⭐️
toggleHtmlPreview:切换是否显示 html 预览。 - ⭐️
toggleCatalog:切换是否显示目录。 - ⭐️
triggerSave:触发保存。 - ⭐️
insert:手动向文本框插入内容,通常用于定义组件,快速向编辑框插入指定内容。
- ⭐️
🌟 重构:
- ⚠️ 语言设置,移除
linkModalTips.title,新增linkModalTips.linkTitle和linkModalTips.imageTitle;lable关键词调整为label(@Tofandel )。 - 🌟 解构
previewOnly,editorId,noKatex,noMermaid,noPrettier,noUploadImg,noIconfont,这类属性只支持设置默认值。 - ⚠️ 在线的图标库替换:[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标签语义化 (相关内容)。
🐞 修复:
⭐️ 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, addlinkModalTips.linkTitleandlinkModalTips.imageTitle; correct keylabletolabel(@Tofandel ). - 🌟 Destructuring props
previewOnly,editorId,noKatex,noMermaid,noPrettier,noUploadImg,noIconfont, 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: