This commit is contained in:
haoouba
2021-03-28 22:27:22 +08:00
parent bd2e97857b
commit e97641ca99
10 changed files with 20 additions and 40 deletions

File diff suppressed because one or more lines are too long

View File

@@ -137,12 +137,13 @@ body.fullscreen {
background-color: rgba(221, 240, 255, 0.2);
}
.cm-content {
width: 100%;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
overflow-wrap: break-word;
color: #ccc;
caret-color: #ccc;
padding: 15px 13px 15px 11px;
-webkit-user-modify: read-write-plaintext-only;
}
.cm-matchingBracket {
color: #8f938f;
@@ -198,8 +199,7 @@ body.fullscreen {
font-size: 14px;
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
overflow-wrap: break-word;
color: #606266;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -382,14 +382,6 @@ body.fullscreen {
background: #ebeef5;
}
}
tbody {
tr {
transition: background 0.35s;
&:hover {
background: #ebeef5;
}
}
}
}
img {
display: block;

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,7 @@ import JoeAction from './_actions';
class Joe extends JoeAction {
constructor() {
super();
this.plugins = [classHighlightStyle, history(), bracketMatching(), closeBrackets()];
this.plugins = [history(), classHighlightStyle, bracketMatching(), closeBrackets()];
this.parser = new HyperDown();
this._isPasting = false;
@@ -120,7 +120,8 @@ class Joe extends JoeAction {
});
}
})
]
],
tabSize: 4
})
});
$('.cm-mainer').prepend(cm.dom);