mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
upgraded libs and improved Markdown editing experience
This commit is contained in:
parent
2e146cf767
commit
ea1a8000ee
165 changed files with 15930 additions and 19013 deletions
8
app/public/codemirror/mode/slim/slim.js
vendored
8
app/public/codemirror/mode/slim/slim.js
vendored
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue