-
-
Notifications
You must be signed in to change notification settings - Fork 881
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a694a1e
commit a42598c
Showing
11 changed files
with
71 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,11 @@ | |
content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/> | ||
<meta name="twitter:description" property="og:description" itemprop="description" | ||
content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/> | ||
<link rel="dns-prefetch" href="//unpkg.com/"/> | ||
<link rel="preconnect" href="https://unpkg.com"> | ||
<link rel="icon" type="image/png" href="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<link rel="apple-touch-icon" href="https://unpkg.com/vditor/dist/images/logo.png"> | ||
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.com/vditor/dist/images/logo.png"> | ||
<link rel="dns-prefetch" href="//cdn.jsdelivr.net/"/> | ||
<link rel="preconnect" href="https://cdn.jsdelivr.net"> | ||
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"> | ||
<link rel="shortcut icon" type="image/x-icon" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"> | ||
<meta name="copyright" content="B3log"/> | ||
<meta http-equiv="Window-target" content="_top"/> | ||
<meta property="og:locale" content="zh-cmn-Hans"/> | ||
|
@@ -34,8 +34,8 @@ | |
content="Vditor: ♏ An In-browser Markdown editor, support WYSIWYG, Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。"/> | ||
<meta name="twitter:site" content="@B3logOS"/> | ||
<meta name="twitter:url" content="https://b3log.org/vditor"/> | ||
<meta property="og:image" content="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<meta name="twitter:image" content="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<style> | ||
body { | ||
margin: 0; | ||
|
@@ -58,7 +58,7 @@ | |
position: absolute; | ||
} | ||
</style> | ||
<script src="https://unpkg.com/[email protected]/dist/vconsole.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vconsole.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="vditor-reset nav"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,11 @@ | |
content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/> | ||
<meta name="twitter:description" property="og:description" itemprop="description" | ||
content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/> | ||
<link rel="dns-prefetch" href="//unpkg.com/"/> | ||
<link rel="preconnect" href="https://unpkg.com"> | ||
<link rel="icon" type="image/png" href="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<link rel="apple-touch-icon" href="https://unpkg.com/vditor/dist/images/logo.png"> | ||
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.com/vditor/dist/images/logo.png"> | ||
<link rel="dns-prefetch" href="//cdn.jsdelivr.net/"/> | ||
<link rel="preconnect" href="https://cdn.jsdelivr.net"> | ||
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"> | ||
<link rel="shortcut icon" type="image/x-icon" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"> | ||
<meta name="copyright" content="B3log"/> | ||
<meta http-equiv="Window-target" content="_top"/> | ||
<meta property="og:locale" content="zh-cmn-Hans"/> | ||
|
@@ -34,8 +34,8 @@ | |
content="Vditor: ♏ An In-browser Markdown editor, support WYSIWYG, Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。"/> | ||
<meta name="twitter:site" content="@B3logOS"/> | ||
<meta name="twitter:url" content="https://b3log.org/vditor"/> | ||
<meta property="og:image" content="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<meta name="twitter:image" content="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<style> | ||
body { | ||
margin: 0; | ||
|
@@ -51,7 +51,7 @@ | |
color: #4285f4; | ||
} | ||
</style> | ||
<script src="https://unpkg.com/[email protected]/dist/vconsole.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vconsole.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="vditor-reset nav"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ const initVditor = (language) => { | |
window.vditor = new Vditor('vditor', { | ||
// _lutePath: `http://192.168.31.194:9090/lute.min.js?${new Date().getTime()}`, | ||
_lutePath: 'src/js/lute/lute.min.js', | ||
// cdn: 'http://localhost:9000', | ||
cdn: 'https://cdn.jsdelivr.net/npm/vditor', | ||
toolbar, | ||
lang: language, | ||
mode: 'wysiwyg', | ||
|
@@ -83,11 +83,11 @@ const initVditor = (language) => { | |
type: 'text', | ||
}, | ||
hint: { | ||
emojiPath: 'https://unpkg.com/[email protected]/dist/images/emoji', | ||
emojiPath: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/images/emoji', | ||
emojiTail: '<a href="https://ld246.com/settings/function" target="_blank">设置常用表情</a>', | ||
emoji: { | ||
'sd': '💔', | ||
'j': 'https://unpkg.com/[email protected]/dist/images/emoji/j.png', | ||
'j': 'https://cdn.jsdelivr.net/npm/[email protected]/dist/images/emoji/j.png', | ||
}, | ||
parse: false, | ||
extend: [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,13 @@ window.vditorTest = new Vditor('vditorTest', { | |
}, | ||
}, | ||
hint: { | ||
emojiPath: 'https://unpkg.com/vditor/dist/images/emoji', | ||
emojiPath: 'https://cdn.jsdelivr.net/npm/vditor/dist/images/emoji', | ||
emojiTail: '<a href="https://ld246.com/settings/function" target="_blank">设置常用表情</a>', | ||
emoji: { | ||
'+1': '👍', | ||
'-1': '👎', | ||
'trollface': 'https://unpkg.com/[email protected]/dist/images/emoji/trollface.png', | ||
'huaji': 'https://unpkg.com/[email protected]/dist/images/emoji/huaji.gif', | ||
'trollface': 'https://cdn.jsdelivr.net/npm/[email protected]/dist/images/emoji/trollface.png', | ||
'huaji': 'https://cdn.jsdelivr.net/npm/[email protected]/dist/images/emoji/huaji.gif', | ||
}, | ||
at: (key) => { | ||
console.log(`atUser: ${key}`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,11 @@ | |
content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/> | ||
<meta name="twitter:description" property="og:description" itemprop="description" | ||
content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/> | ||
<link rel="dns-prefetch" href="//unpkg.com/"/> | ||
<link rel="preconnect" href="https://unpkg.com"> | ||
<link rel="icon" type="image/png" href="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<link rel="apple-touch-icon" href="https://unpkg.com/vditor/dist/images/logo.png"> | ||
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.com/vditor/dist/images/logo.png"> | ||
<link rel="dns-prefetch" href="//cdn.jsdelivr.net/"/> | ||
<link rel="preconnect" href="https://cdn.jsdelivr.net"> | ||
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"> | ||
<link rel="shortcut icon" type="image/x-icon" href="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"> | ||
<meta name="copyright" content="B3log"/> | ||
<meta http-equiv="Window-target" content="_top"/> | ||
<meta property="og:locale" content="zh-cmn-Hans"/> | ||
|
@@ -34,8 +34,8 @@ | |
content="Vditor: ♏ An In-browser Markdown editor, support WYSIWYG, Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。"/> | ||
<meta name="twitter:site" content="@B3logOS"/> | ||
<meta name="twitter:url" content="https://b3log.org/vditor"/> | ||
<meta property="og:image" content="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<meta name="twitter:image" content="https://unpkg.com/vditor/dist/images/logo.png"/> | ||
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/> | ||
<style> | ||
body { | ||
margin: 0; | ||
|
@@ -51,8 +51,8 @@ | |
color: #4285f4; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/index.css"> | ||
<script src="https://unpkg.com/[email protected]/dist/index.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="vditor-reset nav"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters