@yltrcc/vditor 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +1,43 @@
1
- import {Constants, VDITOR_VERSION} from "../constants";
2
- import {getEventName} from "../util/compatibility";
3
- import {MenuItem} from "./MenuItem";
4
-
5
- export class Info extends MenuItem {
6
- constructor(vditor: IVditor, menuItem: IMenuItem) {
7
- super(vditor, menuItem);
8
- this.element.children[0].addEventListener(getEventName(), (event) => {
9
- event.preventDefault();
10
- vditor.tip.show(`<div style="max-width: 520px; font-size: 14px;line-height: 22px;margin-bottom: 14px;">
11
- <p style="text-align: center;margin: 14px 0">
12
- <em>下一代的 Markdown 编辑器,为未来而构建</em>
13
- </p>
14
- <div style="display: flex;margin-bottom: 14px;flex-wrap: wrap;align-items: center">
15
- <img src="${Constants.CDN}/dist/images/logo.png" style="margin: 0 auto;height: 68px"/>
16
- <div>&nbsp;&nbsp;</div>
17
- <div style="flex: 1;min-width: 250px">
18
- Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。
19
- 它使用 TypeScript 实现,支持原生 JavaScript 以及 Vue、React、Angular 和 Svelte 等框架。
20
- </div>
21
- </div>
22
- <div style="display: flex;flex-wrap: wrap;">
23
- <ul style="list-style: none;flex: 1;min-width:148px">
24
- <li>
25
- 项目地址:<a href="https://b3log.org/vditor" target="_blank">b3log.org/vditor</a>
26
- </li>
27
- <li>
28
- 开源协议:MIT
29
- </li>
30
- </ul>
31
- <ul style="list-style: none;margin-right: 18px">
32
- <li>
33
- 组件版本:Vditor v${VDITOR_VERSION} / Lute v${Lute.Version}
34
- </li>
35
- <li>
36
- 赞助捐赠:<a href="https://ld246.com/sponsor" target="_blank">https://ld246.com/sponsor</a>
37
- </li>
38
- </ul>
39
- </div>
40
- </div>`, 0);
41
- });
42
- }
43
- }
1
+ import {Constants, VDITOR_VERSION} from "../constants";
2
+ import {getEventName} from "../util/compatibility";
3
+ import {MenuItem} from "./MenuItem";
4
+
5
+ export class Info extends MenuItem {
6
+ constructor(vditor: IVditor, menuItem: IMenuItem) {
7
+ super(vditor, menuItem);
8
+ this.element.children[0].addEventListener(getEventName(), (event) => {
9
+ event.preventDefault();
10
+ vditor.tip.show(`<div style="max-width: 520px; font-size: 14px;line-height: 22px;margin-bottom: 14px;">
11
+ <p style="text-align: center;margin: 14px 0">
12
+ <em>下一代的 Markdown 编辑器,为未来而构建</em>
13
+ </p>
14
+ <div style="display: flex;margin-bottom: 14px;flex-wrap: wrap;align-items: center">
15
+ <img src="${Constants.CDN}/dist/images/logo.png" style="margin: 0 auto;height: 68px"/>
16
+ <div>&nbsp;&nbsp;</div>
17
+ <div style="flex: 1;min-width: 250px">
18
+ Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。
19
+ 它使用 TypeScript 实现,支持原生 JavaScript 以及 Vue、React、Angular 和 Svelte 等框架。
20
+ </div>
21
+ </div>
22
+ <div style="display: flex;flex-wrap: wrap;">
23
+ <ul style="list-style: none;flex: 1;min-width:148px">
24
+ <li>
25
+ 项目地址:<a href="https://b3log.org/vditor" target="_blank">b3log.org/vditor</a>
26
+ </li>
27
+ <li>
28
+ 开源协议:MIT
29
+ </li>
30
+ </ul>
31
+ <ul style="list-style: none;margin-right: 18px">
32
+ <li>
33
+ 组件版本:Vditor v${VDITOR_VERSION} / Lute v${Lute.Version}
34
+ </li>
35
+ <li>
36
+ 赞助捐赠:<a href="https://ld246.com/sponsor" target="_blank">https://ld246.com/sponsor</a>
37
+ </li>
38
+ </ul>
39
+ </div>
40
+ </div>`, 0);
41
+ });
42
+ }
43
+ }