mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
upgrade editor.md(many bug exists)
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
|
||||
<link rel="stylesheet" href="../../lib/codemirror.css">
|
||||
<link rel="stylesheet" href="../../theme/ambiance.css">
|
||||
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
<script src="https://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
|
||||
<script src="https://code.jquery.com/jquery-1.13.0.min.js"></script>
|
||||
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.min.js"></script>
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.0/themes/smoothness/jquery-ui.css">
|
||||
<script src="../../lib/codemirror.js"></script>
|
||||
<script src="../xml/xml.js"></script>
|
||||
<script src="../htmlembedded/htmlembedded.js"></script>
|
||||
@@ -20,7 +20,7 @@
|
||||
<script src="slim.js"></script>
|
||||
<style>.CodeMirror {background: #f8f8f8;}</style>
|
||||
<div id=nav>
|
||||
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
||||
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
|
||||
|
||||
<ul>
|
||||
<li><a href="../../index.html">Home</a>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||
|
||||
// Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
};
|
||||
return function(stream, state) {
|
||||
rubyState = state.rubyState;
|
||||
state.rubyState = rubyMode.startState();
|
||||
state.rubyState = CodeMirror.startState(rubyMode);
|
||||
state.tokenize = runSplat;
|
||||
return ruby(stream, state);
|
||||
};
|
||||
@@ -317,7 +317,7 @@
|
||||
|
||||
function startSubMode(mode, state) {
|
||||
var subMode = getMode(mode);
|
||||
var subState = subMode.startState && subMode.startState();
|
||||
var subState = CodeMirror.startState(subMode);
|
||||
|
||||
state.subMode = subMode;
|
||||
state.subState = subState;
|
||||
@@ -507,8 +507,8 @@
|
||||
var mode = {
|
||||
// default to html mode
|
||||
startState: function() {
|
||||
var htmlState = htmlMode.startState();
|
||||
var rubyState = rubyMode.startState();
|
||||
var htmlState = CodeMirror.startState(htmlMode);
|
||||
var rubyState = CodeMirror.startState(rubyMode);
|
||||
return {
|
||||
htmlState: htmlState,
|
||||
rubyState: rubyState,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||
|
||||
// Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user