Releases: imzbf/md-editor-rt
Releases · imzbf/md-editor-rt
v2.2.0
新增特性
noIconfont
属性,这将不会请求矢量图标库资源,相反,你需要自行下载图标到项目中引入。- 配置
prettier
,参考配置编辑器的EditorExtensions
,完全配置参考自行引入扩展库。 onClick
MdCatalog 组件属性,点击每个导航时的事件,使用参考文档源码。- 如果未使用
MdEditor.config
配置延迟渲染时间, 仅预览模式下将默认为0,即不延迟。 - 继承
marked.Renderer
,重写markedRenderer入参render.heading
,提供文章标题下标为第5入参。
调整
- 部分功能重构。
修复
- 修复图片及链接hover title为空的情况。
- 修复隐藏后展示编辑器,同步滚动失效问题。
- 修复部分语言代码模块highlight报错问题。
- 修复vuepress模式下,行内代码样式不统一问题。
New Feature
noIconfont
prop. Not append iconfont script to document. Download and import it by yourself.- config
prettier
. ReferenceEditorExtensions
in Config Editor . All library example, reference Import All Library. onClick
MdCatalog prop. Navigation clicked event, reference source code.- If don't use
MdEditor.config
to configrenderDelay
,renderDelay
will be set to 0 whilepreviewOnly = true
. - Extends
marked.Renderer
, Rewriterender.heading
, provide heading index as the fifth parameter.
Refactor
- Refactor some codes.
Fix
- Set incorrect default title of images.
- Not initialize scrolling on mounted.
- Highlight not support some special code languages.
- Inline code style is not same as others when
previewTheme = 'vuepress'
.
v2.1.2
修复
- 撤回文本光标选中内容有时不正确
- highlightAuto 不支持的开发语言 imzbf/md-editor-v3#119
- 编辑器无法设置 standaloneJs 外链 imzbf/md-editor-v3#118
Fix
- Cursor position is incorrect when recall text sometimes
- Use
highlightAuto
when code language is not supported imzbf/md-editor-v3#119 standaloneJs
is not set correctly imzbf/md-editor-v3#118
v2.1.1
v2.1.0
新增特性
- 页脚布局,
footers
属性控制其内容显示状态。 scrollAuto
属性,页脚同步滚动控制默认状态。defFooters
属性,自定义新增页脚内容。
调整
markedHeadingId
属性,新增标题下标为第三入参。- 只对预览内容中带有
zoom
属性的img标签放大查看。
修复
- 不能单独显示一个
$
。
New Feature
- Prop
footers
. Configure the order of footer tools. - Prop
scrollAuto
. Scroll default setting. - Prop
defFooters
. Custom footer tools.
Refactor
Fix
$
cannot be renderer only.
v2.0.1
v2.0.0
新增:
- 多预览主题
'default' | 'github' | 'vuepress' | 'mk-cute' | 'smart-blue' | 'cyanosis'
,支持自定义 - 多代码主题
'atom'|'a11y'|'github'|'gradient'|'kimbie'|'paraiso'|'qtcreator'|'stackoverflow'
,支持自定义 MdEditor.config
,对marked
配置,renderer
配置,编辑器配置及静态内容配置- 公式、图形等预设模板自定义,见示例
- 弹窗工具栏组件
ModalToolbar
- 图片点击预览放大
- 错误捕获事件(onError),支持扩展未加载完成提示
- 使用css变量重构编辑器样式
调整: