diff --git a/CHANGELOG.md b/CHANGELOG.md index e2b5e5bcc..a1330bc6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ ### v3.1.15 / 2020-04-2x * [333](https://github.com/Vanessa219/vditor/issues/333) 重新设计帮助菜单 `改进功能` +* [334](https://github.com/Vanessa219/vditor/issues/334) 重新设计关于菜单 `改进功能` * [335](https://github.com/Vanessa219/vditor/issues/335) 块引用嵌套列表跳出问题 `修复缺陷` * [332](https://github.com/Vanessa219/vditor/issues/332) Not working 3rd menu at smartphone `修复缺陷` diff --git a/src/ts/toolbar/Help.ts b/src/ts/toolbar/Help.ts index cb51aaaec..2ea98cb6e 100644 --- a/src/ts/toolbar/Help.ts +++ b/src/ts/toolbar/Help.ts @@ -6,8 +6,7 @@ export class Help extends MenuItem { super(vditor, menuItem); this.element.children[0].addEventListener(getEventName(), (event) => { event.preventDefault(); - vditor.tip.show(`
-

帮助

+ vditor.tip.show(`

Markdown 使用指南


+ +

键盘快捷键

`, 0); }); } diff --git a/src/ts/toolbar/Info.ts b/src/ts/toolbar/Info.ts index de595b160..fd49cf7f3 100644 --- a/src/ts/toolbar/Info.ts +++ b/src/ts/toolbar/Info.ts @@ -1,13 +1,37 @@ import {getEventName} from "../util/compatibility"; -import {openURL} from "../util/compatibility"; import {MenuItem} from "./MenuItem"; +import { VDITOR_VERSION} from "../constants"; export class Info extends MenuItem { constructor(vditor: IVditor, menuItem: IMenuItem) { super(vditor, menuItem); this.element.children[0].addEventListener(getEventName(), (event) => { event.preventDefault(); - openURL("https://github.com/Vanessa219/vditor"); + vditor.tip.show(`
+

+
+下一代的 Markdown 编辑器,为未来而构建 +

+

+Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。 +它使用 TypeScript 实现,支持原生 JavaScript、Vue、React 和Angular。

+
+ +
+
`, 0); }); } }