diff --git a/assets/scripts/editor.js b/assets/scripts/editor.js
index f5148e6..808010c 100644
--- a/assets/scripts/editor.js
+++ b/assets/scripts/editor.js
@@ -5,11 +5,6 @@ let app = new Vue({
aboutOutput: '',
output: '',
source: '',
- editorThemes: [
- { label: '淡雅', value: 'xq-light' },
- { label: '精致', value: 'eclipse' },
- { label: '暗绿', value: 'oceanic-next' }
- ],
editor: null,
cssEditor: null,
builtinFonts: [
@@ -35,8 +30,6 @@ let app = new Vue({
showBox: true,
aboutDialogVisible: false
};
- d.currentEditorTheme = d.editorThemes[0].value;
- d.currentCssEditorTheme = d.editorThemes[0].value;
d.currentFont = d.builtinFonts[0].value;
d.currentSize = d.sizeOption[1].value;
d.currentColor = d.colorOption[0].value;
@@ -49,12 +42,12 @@ let app = new Vue({
this.editor = CodeMirror.fromTextArea(
document.getElementById('editor'),
{
+ mode: 'text/x-markdown',
+ theme: 'xq-light',
lineNumbers: false,
lineWrapping: true,
styleActiveLine: true,
- autoCloseBrackets: true,
- theme: this.currentEditorTheme,
- mode: 'text/x-markdown'
+ autoCloseBrackets: true
}
);
this.cssEditor = CodeMirror.fromTextArea(
diff --git a/index.html b/index.html
index bab3c80..97bcef2 100644
--- a/index.html
+++ b/index.html
@@ -15,8 +15,6 @@
-
-
@@ -58,14 +56,6 @@
-
-
-
-
-
-
span::selection,.cm-s-oceanic-next .CodeMirror-line>span>span::selection{background:rgba(101,115,126,.33)}.cm-s-oceanic-next .CodeMirror-line::-moz-selection,.cm-s-oceanic-next .CodeMirror-line>span::-moz-selection,.cm-s-oceanic-next .CodeMirror-line>span>span::-moz-selection{background:rgba(101,115,126,.33)}.cm-s-oceanic-next .CodeMirror-gutters{background:#304148;border-right:10px}.cm-s-oceanic-next .CodeMirror-guttermarker{color:#fff}.cm-s-oceanic-next .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-oceanic-next .CodeMirror-linenumber{color:#d0d0d0}.cm-s-oceanic-next .CodeMirror-cursor{border-left:1px solid #f8f8f0}.cm-s-oceanic-next span.cm-comment{color:#65737e}.cm-s-oceanic-next span.cm-atom{color:#c594c5}.cm-s-oceanic-next span.cm-number{color:#f99157}.cm-s-oceanic-next span.cm-property{color:#99c794}.cm-s-oceanic-next span.cm-attribute,.cm-s-oceanic-next span.cm-keyword{color:#c594c5}.cm-s-oceanic-next span.cm-builtin{color:#66d9ef}.cm-s-oceanic-next span.cm-string{color:#99c794}.cm-s-oceanic-next span.cm-variable,.cm-s-oceanic-next span.cm-variable-2,.cm-s-oceanic-next span.cm-variable-3{color:#f8f8f2}.cm-s-oceanic-next span.cm-def{color:#69c}.cm-s-oceanic-next span.cm-bracket{color:#5fb3b3}.cm-s-oceanic-next span.cm-tag{color:#c594c5}.cm-s-oceanic-next span.cm-header{color:#c594c5}.cm-s-oceanic-next span.cm-link{color:#c594c5}.cm-s-oceanic-next span.cm-error{background:#c594c5;color:#f8f8f0}.cm-s-oceanic-next .CodeMirror-activeline-background{background:rgba(101,115,126,.33)}.cm-s-oceanic-next .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
-/*# sourceMappingURL=oceanic-next.min.css.map */
\ No newline at end of file