Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Zebra-h
Awesome-Markdown-Editor
提交
faf4316f
Awesome-Markdown-Editor
项目概览
Zebra-h
/
Awesome-Markdown-Editor
与 Fork 源项目一致
Fork自
gitcode_dev / Awesome-Markdown-Editor
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Awesome-Markdown-Editor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
faf4316f
编写于
11月 11, 2021
作者:
郭
郭维嘉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
上级
32540c29
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
221 addition
and
217 deletion
+221
-217
dist/.DS_Store
dist/.DS_Store
+0
-0
dist/19.markdown-editor.js
dist/19.markdown-editor.js
+1
-1
dist/705.markdown-editor.js
dist/705.markdown-editor.js
+1
-1
dist/718.markdown-editor.js
dist/718.markdown-editor.js
+1
-1
dist/index.html
dist/index.html
+214
-212
dist/markdown-editor.js
dist/markdown-editor.js
+1
-1
src/main.js
src/main.js
+2
-0
webpack.config.js
webpack.config.js
+1
-1
未找到文件。
dist/.DS_Store
浏览文件 @
faf4316f
无法预览此类型文件
dist/19.markdown-editor.js
浏览文件 @
faf4316f
"
use strict
"
;(
self
.
webpackChunkmarkdown_editor
=
self
.
webpackChunkmarkdown_editor
||
[]).
push
([[
19
],{
6790
:(
e
,
n
,
l
)
=>
{
l
.
d
(
n
,{
Z
:()
=>
s
});
var
r
=
l
(
1522
),
i
=
l
.
n
(
r
)()((
function
(
e
){
return
e
[
1
]}));
i
.
push
([
e
.
id
,
"
/*
\n\n
Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
\n\n
*/
\n
.md_preview .md_hljs {
\n
color: #ddd;
\n
background: #444;
\n
}
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-literal,
\n
.md_preview .hljs-section,
\n
.md_preview .hljs-link {
\n
color: white;
\n
}
\n
.md_preview .hljs-subst {
\n
/* default */
\n
}
\n
.md_preview .hljs-string,
\n
.md_preview .hljs-title,
\n
.md_preview .hljs-name,
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-attribute,
\n
.md_preview .hljs-symbol,
\n
.md_preview .hljs-bullet,
\n
.md_preview .hljs-built_in,
\n
.md_preview .hljs-addition,
\n
.md_preview .hljs-variable,
\n
.md_preview .hljs-template-tag,
\n
.md_preview .hljs-template-variable {
\n
color: #d88;
\n
}
\n
.md_preview .hljs-comment,
\n
.md_preview .hljs-quote,
\n
.md_preview .hljs-deletion,
\n
.md_preview .hljs-meta {
\n
color: #777;
\n
}
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-literal,
\n
.md_preview .hljs-title,
\n
.md_preview .hljs-section,
\n
.md_preview .hljs-doctag,
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-name,
\n
.md_preview .hljs-strong {
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-emphasis {
\n
font-style: italic;
\n
}
\n
"
,
""
]);
const
s
=
i
},
2019
:(
e
,
n
,
l
)
=>
{
l
.
r
(
n
),
l
.
d
(
n
,{
default
:()
=>
d
});
var
r
=
l
(
7574
),
i
=
l
.
n
(
r
),
s
=
l
(
6790
);
i
()(
s
.
Z
,{
insert
:
"
head
"
,
singleton
:
!
1
});
const
d
=
s
.
Z
.
locals
||
{}}}]);
\ No newline at end of file
"
use strict
"
;(
self
.
webpackChunkawesome_markdown_editor
=
self
.
webpackChunkawesome_markdown_editor
||
[]).
push
([[
19
],{
6790
:(
e
,
n
,
l
)
=>
{
l
.
d
(
n
,{
Z
:()
=>
s
});
var
r
=
l
(
1522
),
i
=
l
.
n
(
r
)()((
function
(
e
){
return
e
[
1
]}));
i
.
push
([
e
.
id
,
"
/*
\n\n
Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
\n\n
*/
\n
.md_preview .md_hljs {
\n
color: #ddd;
\n
background: #444;
\n
}
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-literal,
\n
.md_preview .hljs-section,
\n
.md_preview .hljs-link {
\n
color: white;
\n
}
\n
.md_preview .hljs-subst {
\n
/* default */
\n
}
\n
.md_preview .hljs-string,
\n
.md_preview .hljs-title,
\n
.md_preview .hljs-name,
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-attribute,
\n
.md_preview .hljs-symbol,
\n
.md_preview .hljs-bullet,
\n
.md_preview .hljs-built_in,
\n
.md_preview .hljs-addition,
\n
.md_preview .hljs-variable,
\n
.md_preview .hljs-template-tag,
\n
.md_preview .hljs-template-variable {
\n
color: #d88;
\n
}
\n
.md_preview .hljs-comment,
\n
.md_preview .hljs-quote,
\n
.md_preview .hljs-deletion,
\n
.md_preview .hljs-meta {
\n
color: #777;
\n
}
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-literal,
\n
.md_preview .hljs-title,
\n
.md_preview .hljs-section,
\n
.md_preview .hljs-doctag,
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-name,
\n
.md_preview .hljs-strong {
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-emphasis {
\n
font-style: italic;
\n
}
\n
"
,
""
]);
const
s
=
i
},
2019
:(
e
,
n
,
l
)
=>
{
l
.
r
(
n
),
l
.
d
(
n
,{
default
:()
=>
d
});
var
r
=
l
(
7574
),
i
=
l
.
n
(
r
),
s
=
l
(
6790
);
i
()(
s
.
Z
,{
insert
:
"
head
"
,
singleton
:
!
1
});
const
d
=
s
.
Z
.
locals
||
{}}}]);
\ No newline at end of file
dist/705.markdown-editor.js
浏览文件 @
faf4316f
"
use strict
"
;(
self
.
webpackChunkmarkdown_editor
=
self
.
webpackChunkmarkdown_editor
||
[]).
push
([[
705
],{
4596
:(
e
,
n
,
l
)
=>
{
l
.
d
(
n
,{
Z
:()
=>
s
});
var
r
=
l
(
1522
),
i
=
l
.
n
(
r
)()((
function
(
e
){
return
e
[
1
]}));
i
.
push
([
e
.
id
,
"
/*
\n\n
Lightfair style (c) Tristian Kelly <tristian.kelly560@gmail.com>
\n\n
*/
\n
.md_preview .md_hljs {
\n
color: #444;
\n
background: var(--md-editor-code-bg-color);
\n
}
\n
.md_preview .hljs-name {
\n
color: #01a3a3;
\n
}
\n
.md_preview .hljs-tag,
\n
.md_preview .hljs-meta {
\n
color: #778899;
\n
}
\n
.md_preview .hljs-subst {
\n
/* default */
\n
}
\n
.md_preview .hljs-comment {
\n
color: #888888;
\n
}
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-attribute,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-meta .hljs-keyword,
\n
.md_preview .hljs-doctag,
\n
.md_preview .hljs-name {
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-string,
\n
.md_preview .hljs-number,
\n
.md_preview .hljs-selector-id,
\n
.md_preview .hljs-selector-class,
\n
.md_preview .hljs-quote,
\n
.md_preview .hljs-template-tag,
\n
.md_preview .hljs-deletion {
\n
color: #4286f4;
\n
}
\n
.md_preview .hljs-title,
\n
.md_preview .hljs-section {
\n
color: #4286f4;
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-regexp,
\n
.md_preview .hljs-symbol,
\n
.md_preview .hljs-variable,
\n
.md_preview .hljs-template-variable,
\n
.md_preview .hljs-link,
\n
.md_preview .hljs-selector-attr,
\n
.md_preview .hljs-selector-pseudo {
\n
color: #bc6060;
\n
}
\n
.md_preview .hljs-literal {
\n
color: #62bcbc;
\n
}
\n
.md_preview .hljs-built_in,
\n
.md_preview .hljs-bullet,
\n
.md_preview .hljs-code,
\n
.md_preview .hljs-addition {
\n
color: #25c6c6;
\n
}
\n
.md_preview .hljs-meta .hljs-string {
\n
color: #4d99bf;
\n
}
\n
.md_preview .hljs-emphasis {
\n
font-style: italic;
\n
}
\n
.md_preview .hljs-strong {
\n
font-weight: bold;
\n
}
\n
"
,
""
]);
const
s
=
i
},
7705
:(
e
,
n
,
l
)
=>
{
l
.
r
(
n
),
l
.
d
(
n
,{
default
:()
=>
d
});
var
r
=
l
(
7574
),
i
=
l
.
n
(
r
),
s
=
l
(
4596
);
i
()(
s
.
Z
,{
insert
:
"
head
"
,
singleton
:
!
1
});
const
d
=
s
.
Z
.
locals
||
{}}}]);
\ No newline at end of file
"
use strict
"
;(
self
.
webpackChunkawesome_markdown_editor
=
self
.
webpackChunkawesome_markdown_editor
||
[]).
push
([[
705
],{
4596
:(
e
,
n
,
l
)
=>
{
l
.
d
(
n
,{
Z
:()
=>
s
});
var
r
=
l
(
1522
),
i
=
l
.
n
(
r
)()((
function
(
e
){
return
e
[
1
]}));
i
.
push
([
e
.
id
,
"
/*
\n\n
Lightfair style (c) Tristian Kelly <tristian.kelly560@gmail.com>
\n\n
*/
\n
.md_preview .md_hljs {
\n
color: #444;
\n
background: var(--md-editor-code-bg-color);
\n
}
\n
.md_preview .hljs-name {
\n
color: #01a3a3;
\n
}
\n
.md_preview .hljs-tag,
\n
.md_preview .hljs-meta {
\n
color: #778899;
\n
}
\n
.md_preview .hljs-subst {
\n
/* default */
\n
}
\n
.md_preview .hljs-comment {
\n
color: #888888;
\n
}
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-attribute,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-meta .hljs-keyword,
\n
.md_preview .hljs-doctag,
\n
.md_preview .hljs-name {
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-string,
\n
.md_preview .hljs-number,
\n
.md_preview .hljs-selector-id,
\n
.md_preview .hljs-selector-class,
\n
.md_preview .hljs-quote,
\n
.md_preview .hljs-template-tag,
\n
.md_preview .hljs-deletion {
\n
color: #4286f4;
\n
}
\n
.md_preview .hljs-title,
\n
.md_preview .hljs-section {
\n
color: #4286f4;
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-regexp,
\n
.md_preview .hljs-symbol,
\n
.md_preview .hljs-variable,
\n
.md_preview .hljs-template-variable,
\n
.md_preview .hljs-link,
\n
.md_preview .hljs-selector-attr,
\n
.md_preview .hljs-selector-pseudo {
\n
color: #bc6060;
\n
}
\n
.md_preview .hljs-literal {
\n
color: #62bcbc;
\n
}
\n
.md_preview .hljs-built_in,
\n
.md_preview .hljs-bullet,
\n
.md_preview .hljs-code,
\n
.md_preview .hljs-addition {
\n
color: #25c6c6;
\n
}
\n
.md_preview .hljs-meta .hljs-string {
\n
color: #4d99bf;
\n
}
\n
.md_preview .hljs-emphasis {
\n
font-style: italic;
\n
}
\n
.md_preview .hljs-strong {
\n
font-weight: bold;
\n
}
\n
"
,
""
]);
const
s
=
i
},
7705
:(
e
,
n
,
l
)
=>
{
l
.
r
(
n
),
l
.
d
(
n
,{
default
:()
=>
d
});
var
r
=
l
(
7574
),
i
=
l
.
n
(
r
),
s
=
l
(
4596
);
i
()(
s
.
Z
,{
insert
:
"
head
"
,
singleton
:
!
1
});
const
d
=
s
.
Z
.
locals
||
{}}}]);
\ No newline at end of file
dist/718.markdown-editor.js
浏览文件 @
faf4316f
"
use strict
"
;(
self
.
webpackChunkmarkdown_editor
=
self
.
webpackChunkmarkdown_editor
||
[]).
push
([[
718
],{
4673
:(
e
,
n
,
l
)
=>
{
l
.
d
(
n
,{
Z
:()
=>
i
});
var
r
=
l
(
1522
),
s
=
l
.
n
(
r
)()((
function
(
e
){
return
e
[
1
]}));
s
.
push
([
e
.
id
,
"
/*
\n\n
Atom One Dark by Daniel Gamage
\n
Original One Dark Syntax theme from https://github.com/atom/one-dark-syntax
\n\n
base: #282c34
\n
mono-1: #abb2bf
\n
mono-2: #818896
\n
mono-3: #5c6370
\n
hue-1: #56b6c2
\n
hue-2: #61aeee
\n
hue-3: #c678dd
\n
hue-4: #98c379
\n
hue-5: #e06c75
\n
hue-5-2: #be5046
\n
hue-6: #d19a66
\n
hue-6-2: #e6c07b
\n\n
*/
\n
.md_preview .md_hljs {
\n
color: #abb2bf;
\n
background: #282c34;
\n
}
\n
.md_preview .hljs-comment,
\n
.md_preview .hljs-quote {
\n
color: #5c6370;
\n
font-style: italic;
\n
}
\n
.md_preview .hljs-doctag,
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-formula {
\n
color: #c678dd;
\n
}
\n
.md_preview .hljs-section,
\n
.md_preview .hljs-name,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-deletion,
\n
.md_preview .hljs-subst {
\n
color: #e06c75;
\n
}
\n
.md_preview .hljs-literal {
\n
color: #56b6c2;
\n
}
\n
.md_preview .hljs-string,
\n
.md_preview .hljs-regexp,
\n
.md_preview .hljs-addition,
\n
.md_preview .hljs-attribute,
\n
.md_preview .hljs-meta .hljs-string {
\n
color: #98c379;
\n
}
\n
.md_preview .hljs-attr,
\n
.md_preview .hljs-variable,
\n
.md_preview .hljs-template-variable,
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-selector-class,
\n
.md_preview .hljs-selector-attr,
\n
.md_preview .hljs-selector-pseudo,
\n
.md_preview .hljs-number {
\n
color: #d19a66;
\n
}
\n
.md_preview .hljs-symbol,
\n
.md_preview .hljs-bullet,
\n
.md_preview .hljs-link,
\n
.md_preview .hljs-meta,
\n
.md_preview .hljs-selector-id,
\n
.md_preview .hljs-title {
\n
color: #61aeee;
\n
}
\n
.md_preview .hljs-built_in,
\n
.md_preview .hljs-title.class_,
\n
.md_preview .hljs-class .hljs-title {
\n
color: #e6c07b;
\n
}
\n
.md_preview .hljs-emphasis {
\n
font-style: italic;
\n
}
\n
.md_preview .hljs-strong {
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-link {
\n
text-decoration: underline;
\n
}
\n
"
,
""
]);
const
i
=
s
},
7718
:(
e
,
n
,
l
)
=>
{
l
.
r
(
n
),
l
.
d
(
n
,{
default
:()
=>
t
});
var
r
=
l
(
7574
),
s
=
l
.
n
(
r
),
i
=
l
(
4673
);
s
()(
i
.
Z
,{
insert
:
"
head
"
,
singleton
:
!
1
});
const
t
=
i
.
Z
.
locals
||
{}}}]);
\ No newline at end of file
"
use strict
"
;(
self
.
webpackChunkawesome_markdown_editor
=
self
.
webpackChunkawesome_markdown_editor
||
[]).
push
([[
718
],{
4673
:(
e
,
n
,
l
)
=>
{
l
.
d
(
n
,{
Z
:()
=>
i
});
var
r
=
l
(
1522
),
s
=
l
.
n
(
r
)()((
function
(
e
){
return
e
[
1
]}));
s
.
push
([
e
.
id
,
"
/*
\n\n
Atom One Dark by Daniel Gamage
\n
Original One Dark Syntax theme from https://github.com/atom/one-dark-syntax
\n\n
base: #282c34
\n
mono-1: #abb2bf
\n
mono-2: #818896
\n
mono-3: #5c6370
\n
hue-1: #56b6c2
\n
hue-2: #61aeee
\n
hue-3: #c678dd
\n
hue-4: #98c379
\n
hue-5: #e06c75
\n
hue-5-2: #be5046
\n
hue-6: #d19a66
\n
hue-6-2: #e6c07b
\n\n
*/
\n
.md_preview .md_hljs {
\n
color: #abb2bf;
\n
background: #282c34;
\n
}
\n
.md_preview .hljs-comment,
\n
.md_preview .hljs-quote {
\n
color: #5c6370;
\n
font-style: italic;
\n
}
\n
.md_preview .hljs-doctag,
\n
.md_preview .hljs-keyword,
\n
.md_preview .hljs-formula {
\n
color: #c678dd;
\n
}
\n
.md_preview .hljs-section,
\n
.md_preview .hljs-name,
\n
.md_preview .hljs-selector-tag,
\n
.md_preview .hljs-deletion,
\n
.md_preview .hljs-subst {
\n
color: #e06c75;
\n
}
\n
.md_preview .hljs-literal {
\n
color: #56b6c2;
\n
}
\n
.md_preview .hljs-string,
\n
.md_preview .hljs-regexp,
\n
.md_preview .hljs-addition,
\n
.md_preview .hljs-attribute,
\n
.md_preview .hljs-meta .hljs-string {
\n
color: #98c379;
\n
}
\n
.md_preview .hljs-attr,
\n
.md_preview .hljs-variable,
\n
.md_preview .hljs-template-variable,
\n
.md_preview .hljs-type,
\n
.md_preview .hljs-selector-class,
\n
.md_preview .hljs-selector-attr,
\n
.md_preview .hljs-selector-pseudo,
\n
.md_preview .hljs-number {
\n
color: #d19a66;
\n
}
\n
.md_preview .hljs-symbol,
\n
.md_preview .hljs-bullet,
\n
.md_preview .hljs-link,
\n
.md_preview .hljs-meta,
\n
.md_preview .hljs-selector-id,
\n
.md_preview .hljs-title {
\n
color: #61aeee;
\n
}
\n
.md_preview .hljs-built_in,
\n
.md_preview .hljs-title.class_,
\n
.md_preview .hljs-class .hljs-title {
\n
color: #e6c07b;
\n
}
\n
.md_preview .hljs-emphasis {
\n
font-style: italic;
\n
}
\n
.md_preview .hljs-strong {
\n
font-weight: bold;
\n
}
\n
.md_preview .hljs-link {
\n
text-decoration: underline;
\n
}
\n
"
,
""
]);
const
i
=
s
},
7718
:(
e
,
n
,
l
)
=>
{
l
.
r
(
n
),
l
.
d
(
n
,{
default
:()
=>
t
});
var
r
=
l
(
7574
),
s
=
l
.
n
(
r
),
i
=
l
(
4673
);
s
()(
i
.
Z
,{
insert
:
"
head
"
,
singleton
:
!
1
});
const
t
=
i
.
Z
.
locals
||
{}}}]);
\ No newline at end of file
dist/index.html
浏览文件 @
faf4316f
...
...
@@ -36,9 +36,10 @@
<button
id=
"b"
>
2222222
</button>
<script
src=
"./markdown-editor.js"
></script>
<script>
const
ee
=
new
MdEditor
({
el
:
"
#app
"
,
// required
value
:
`
\`\`\`
java
try
{
const
ee
=
new
MdEditor
({
el
:
"
#app
"
,
// required
value
:
`
\`\`\`
java
#include "stdio.h"
void main()
{
...
...
@@ -78,222 +79,223 @@
}
\`\`\`
`
,
// value: `
// ![pic](https://img2.baidu.com/it/u=3681880960,455182084&fm=26&fmt=auto&gp=0.jpg=40x40)
// `,
// value: `
// const aaa = $(".left .title").hover(function() {
// aaa.remove()
// })
// `,
value
:
"
## edswgdfgdfgdfg
\n
**dfgdfgdfg**
\n
_ergdfgdfg_
\n
> ergergdfg
\n
```
\n
wefgdfsfdgdf
\n
```
\n
- efwefsdfsdf
\n\n\n
sdgfdfgdfgdfg
\n\n\n
edrfgdfgdfg
\n\n\n\n
ergergergergerg
\n
ergergergerg
\n\n\n
edrfgdfgdfg
\n\n\n\n
ergergergergerg
\n
ergergergerg
\n\n\n
edrfgdfgdfg
\n\n\n\n
ergergergergerg
\n
ergergergerg
"
,
value
:
"
[link](https://img2.baidu.com/it/u=3681880960,455182084&fm=26&fmt=auto&gp=0.jpg)
"
,
// value: "当前问题已结题,不再开放新的回答。",
value
:
"
(http://www.baidu.com)
\n
(http://www.baidu.com)
"
,
value
:
""
,
disabled
:
false
,
themeOptions
:
{
dark
:
false
,
borderColorActive
:
"
#409eff
"
,
textColor
:
"
#303030
"
,
// textColorActive: "#000",
codeTheme
:
"
atom-one-dark
"
},
height
:
400
,
// rows: 'auto',
// height: 40,
toolsOptions
:
{
format
:
true
,
bold
:
true
,
italic
:
true
,
quote
:
true
,
code
:
true
,
link
:
true
,
ul
:
true
,
ol
:
true
,
task
:
true
,
table
:
true
,
img
:
true
,
file
:
true
,
test1
:
true
,
// help: false,
fullScreen
:
true
},
zIndex
:
7000
,
// maxLength: 20000,
showWordLimit
:
true
,
// height: "600",
// value: `
// ![pic](https://img2.baidu.com/it/u=3681880960,455182084&fm=26&fmt=auto&gp=0.jpg=40x40)
// `,
// value: `
// const aaa = $(".left .title").hover(function() {
// aaa.remove()
// })
// `,
value
:
"
## edswgdfgdfgdfg
\n
**dfgdfgdfg**
\n
_ergdfgdfg_
\n
> ergergdfg
\n
```
\n
wefgdfsfdgdf
\n
```
\n
- efwefsdfsdf
\n\n\n
sdgfdfgdfgdfg
\n\n\n
edrfgdfgdfg
\n\n\n\n
ergergergergerg
\n
ergergergerg
\n\n\n
edrfgdfgdfg
\n\n\n\n
ergergergergerg
\n
ergergergerg
\n\n\n
edrfgdfgdfg
\n\n\n\n
ergergergergerg
\n
ergergergerg
"
,
value
:
"
[link](https://img2.baidu.com/it/u=3681880960,455182084&fm=26&fmt=auto&gp=0.jpg)
"
,
// value: "当前问题已结题,不再开放新的回答。",
value
:
"
(http://www.baidu.com)
\n
(http://www.baidu.com)
"
,
value
:
""
,
disabled
:
false
,
themeOptions
:
{
dark
:
false
,
borderColorActive
:
"
#409eff
"
,
textColor
:
"
#303030
"
,
// textColorActive: "#000",
codeTheme
:
"
atom-one-dark
"
},
height
:
400
,
// rows: 'auto',
// height: 40,
toolsOptions
:
{
format
:
true
,
bold
:
true
,
italic
:
true
,
quote
:
true
,
code
:
true
,
link
:
true
,
ul
:
true
,
ol
:
true
,
task
:
true
,
table
:
true
,
img
:
true
,
file
:
true
,
test1
:
true
,
// help: false,
fullScreen
:
true
},
zIndex
:
7000
,
// maxLength: 20000,
showWordLimit
:
true
,
// height: "600",
filePathRule
:
/^https:
\/\/
ss2
\.
bdstatic
\.
com/
,
canPreview
:
true
,
// canAttachFile: true,
placeholder
:
"
请输入内容
"
,
// throttle: 1000,
// onFocus: function(res) {
// console.log(res);
// },
onLoad
:
function
(
res
)
{
// console.log("load", res);
},
onBlur
:
function
(
res
)
{
// console.log(res);
},
onInput
:
function
(
res
)
{
// console.log("input", res);
},
onChange
:
function
(
res
)
{
// console.log("change", res);
},
onSubmit
:
function
(
res
)
{
// console.log(res);
},
onUpload
:
function
(
file
,
type
,
callback
)
{
if
(
type
===
"
video
"
||
type
===
"
img
"
)
{
let
time
=
0
;
const
timeObj
=
setInterval
(()
=>
{
time
++
;
if
(
time
>=
100
)
{
callback
(
"
http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
"
);
clearInterval
(
timeObj
);
return
;
}
callback
(
time
);
},
20
);
return
;
}
new
Promise
((
res
,
rej
)
=>
{
setTimeout
(()
=>
{
res
(
file
);
},
1000
);
}).
then
(
res
=>
{
var
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
res
);
reader
.
onload
=
()
=>
{
callback
(
reader
.
result
);
};
});
},
renderLinks
:
function
(
val
,
callback
)
{
setTimeout
(()
=>
{
callback
(
val
.
map
(
item
=>
{
item
.
title
=
"
如何搭建一个完整的vue生态
"
;
item
.
description
=
"
相信9月18日尤大大的关于Vue3.0的发表演讲大家一定有所关注,现在Vue3.0 也已经进入RC阶段(最终产品的候选版本,如果没有问题则可发布成为正式版本)。所以Vue3.0的学习是我们必然的趋势,今天,主要分享一下Vue3.0的详细搭建过程,希望可以为初入Vue3的小伙伴有所帮助。
"
;
item
.
icon
=
"
https://g.csdnimg.cn/static/logo/favicon32.ico
"
;
return
item
;
})
);
},
0
);
},
queryUserList
:
function
(
val
,
callback
)
{
const
list
=
[
{
id
:
1
,
nickname
:
"
cpongo1
"
,
username
:
"
cpongo1
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img2.baidu.com/it/u=2380211986,3979961921&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
2
,
nickname
:
"
CPongo2
"
,
username
:
"
cpongo2
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img0.baidu.com/it/u=777620324,2343967729&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
3
,
nickname
:
"
马奎斯
"
,
username
:
"
cpongo3
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img2.baidu.com/it/u=1297316011,1869565258&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
4
,
nickname
:
"
王一博
"
,
username
:
"
cpongo4
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img2.baidu.com/it/u=298051053,3773223854&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
5
,
nickname
:
"
王俊凯
"
,
username
:
"
cpongo5
"
,
url
:
"
https://weibo.com/tfwangjunkai
"
,
avatar
:
"
https://img1.baidu.com/it/u=2378425879,2273515018&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
6
,
nickname
:
"
易烊千玺
"
,
username
:
"
cpongo6
"
,
url
:
"
https://weibo.com/tfyiyangqianxi
"
,
avatar
:
"
https://img0.baidu.com/it/u=2227200088,1939721201&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
7
,
nickname
:
"
白敬亭
"
,
username
:
"
cpongo7
"
,
url
:
"
https://weibo.com/u/2112496475
"
,
avatar
:
"
https://img1.baidu.com/it/u=3265411836,2089649447&fm=11&fmt=auto&gp=0.jpg
"
filePathRule
:
/^https:
\/\/
ss2
\.
bdstatic
\.
com/
,
canPreview
:
true
,
// canAttachFile: true,
placeholder
:
"
请输入内容
"
,
// throttle: 1000,
// onFocus: function(res) {
// console.log(res);
// },
onLoad
:
function
(
res
)
{
// console.log("load", res);
},
onBlur
:
function
(
res
)
{
// console.log(res);
},
onInput
:
function
(
res
)
{
// console.log("input", res);
},
onChange
:
function
(
res
)
{
// console.log("change", res);
},
onSubmit
:
function
(
res
)
{
// console.log(res);
},
onUpload
:
function
(
file
,
type
,
callback
)
{
if
(
type
===
"
video
"
||
type
===
"
img
"
)
{
let
time
=
0
;
const
timeObj
=
setInterval
(()
=>
{
time
++
;
if
(
time
>=
100
)
{
callback
(
"
http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
"
);
clearInterval
(
timeObj
);
return
;
}
callback
(
time
);
},
20
);
return
;
}
];
new
Promise
((
res
,
rej
)
=>
{
setTimeout
(()
=>
{
res
(
file
);
},
1000
);
}).
then
(
res
=>
{
var
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
res
);
reader
.
onload
=
()
=>
{
callback
(
reader
.
result
);
};
});
},
renderLinks
:
function
(
val
,
callback
)
{
setTimeout
(()
=>
{
callback
(
val
.
map
(
item
=>
{
item
.
title
=
"
如何搭建一个完整的vue生态
"
;
item
.
description
=
"
相信9月18日尤大大的关于Vue3.0的发表演讲大家一定有所关注,现在Vue3.0 也已经进入RC阶段(最终产品的候选版本,如果没有问题则可发布成为正式版本)。所以Vue3.0的学习是我们必然的趋势,今天,主要分享一下Vue3.0的详细搭建过程,希望可以为初入Vue3的小伙伴有所帮助。
"
;
item
.
icon
=
"
https://g.csdnimg.cn/static/logo/favicon32.ico
"
;
return
item
;
})
);
},
0
);
},
queryUserList
:
function
(
val
,
callback
)
{
const
list
=
[
{
id
:
1
,
nickname
:
"
cpongo1
"
,
username
:
"
cpongo1
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img2.baidu.com/it/u=2380211986,3979961921&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
2
,
nickname
:
"
CPongo2
"
,
username
:
"
cpongo2
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img0.baidu.com/it/u=777620324,2343967729&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
3
,
nickname
:
"
马奎斯
"
,
username
:
"
cpongo3
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img2.baidu.com/it/u=1297316011,1869565258&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
4
,
nickname
:
"
王一博
"
,
username
:
"
cpongo4
"
,
url
:
"
https://weibo.com/u/5492443184
"
,
avatar
:
"
https://img2.baidu.com/it/u=298051053,3773223854&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
5
,
nickname
:
"
王俊凯
"
,
username
:
"
cpongo5
"
,
url
:
"
https://weibo.com/tfwangjunkai
"
,
avatar
:
"
https://img1.baidu.com/it/u=2378425879,2273515018&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
6
,
nickname
:
"
易烊千玺
"
,
username
:
"
cpongo6
"
,
url
:
"
https://weibo.com/tfyiyangqianxi
"
,
avatar
:
"
https://img0.baidu.com/it/u=2227200088,1939721201&fm=26&fmt=auto&gp=0.jpg
"
},
{
id
:
7
,
nickname
:
"
白敬亭
"
,
username
:
"
cpongo7
"
,
url
:
"
https://weibo.com/u/2112496475
"
,
avatar
:
"
https://img1.baidu.com/it/u=3265411836,2089649447&fm=11&fmt=auto&gp=0.jpg
"
}
];
callback
(
list
);
}
});
ee
.
registerTools
([
{
name
:
"
test
"
,
icon
:
"
https://img1.baidu.com/it/u=1522221441,2900868227&fm=26&fmt=auto&gp=0.jpg
"
,
tip
:
"
自定义的按钮
"
,
click
:
function
()
{}
}
]);
function
test
()
{
return
ee
.
getVideoList
();
callback
(
list
);
}
});
}
catch
(
e
)
{
alert
(
e
);
}
document
.
querySelector
(
"
#a
"
).
onclick
=
async
function
()
{
ee
.
setValue
(
`
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
#### 四级标题2四级标题2四级标题2四级标题2四级标题2四级标题2四级标题2四级标题2
#### 四级标题3
#### 四级标题4
### 三级标题2
### 三级标题3
## 二级标题2
## 二级标题3
## 二级标题4
## 二级标题5
### 三级标题4
// ee.registerTools([
// {
// name: "test",
// icon:
// "https://img1.baidu.com/it/u=1522221441,2900868227&fm=26&fmt=auto&gp=0.jpg",
// tip: "自定义的按钮",
// click: function() {}
// }
// ]);
// function test() {
// return ee.getVideoList();
// }
// document.querySelector("#a").onclick = async function() {
// ee.setValue(`
// # 一级标题
// ## 二级标题
// ### 三级标题
// #### 四级标题
// #### 四级标题2四级标题2四级标题2四级标题2四级标题2四级标题2四级标题2四级标题2
// #### 四级标题3
// #### 四级标题4
// ### 三级标题2
// ### 三级标题3
// ## 二级标题2
// ## 二级标题3
// ## 二级标题4
// ## 二级标题5
// ### 三级标题4
// [toc]
[toc]
`
);
// `);
// ee.disable();
// ee.getVideoList(list => {
// console.log("list", list);
// });
};
document
.
querySelector
(
"
#b
"
).
onclick
=
function
()
{
ee
.
enable
();
};
//
// ee.disable();
//
// ee.getVideoList(list => {
//
// console.log("list", list);
//
// });
//
};
//
document.querySelector("#b").onclick = function() {
//
ee.enable();
//
};
</script>
</body>
</html>
dist/markdown-editor.js
浏览文件 @
faf4316f
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/main.js
浏览文件 @
faf4316f
...
...
@@ -6,6 +6,8 @@ import { initStyle, setzIndex, isNotEmpty } from "@/assets/js/utils";
import
"
@/assets/style/global.less
"
;
// import "@/assets/jupyter-render/dist/index.js";
// import "@/assets/jupyter-render/dist/assets/index.css";
Vue
.
use
(
Vtip
.
directive
);
function
initMdEditor
(
obj
)
{
...
...
webpack.config.js
浏览文件 @
faf4316f
...
...
@@ -10,7 +10,7 @@ module.exports = {
contentBase
:
path
.
resolve
(
__dirname
,
"
dist
"
),
host
:
"
0.0.0.0
"
,
// port: 443,
https
:
true
,
//
https: true,
open
:
true
},
resolve
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录