Switch to ACE editor
This commit is contained in:
parent
efada1b26c
commit
0613034688
@ -16,7 +16,7 @@ var BITLY_ACCESS_TOKEN = "317e033bfd48cf31155a68a536b1860013b09c4c";
|
||||
var DEFAULT_FILE_TITLE = "Title";
|
||||
var DEFAULT_FOLDER_NAME = "New folder";
|
||||
var GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document";
|
||||
var EDITOR_DEFAULT_PADDING = 12;
|
||||
var EDITOR_DEFAULT_PADDING = 15;
|
||||
var CHECK_ONLINE_PERIOD = 120000;
|
||||
var AJAX_TIMEOUT = 30000;
|
||||
var ASYNC_TASK_DEFAULT_TIMEOUT = 60000;
|
||||
|
@ -207,7 +207,7 @@ define([
|
||||
}
|
||||
aceEditor = ace.edit("wmd-input");
|
||||
aceEditor.renderer.setShowGutter(false);
|
||||
aceEditor.renderer.setShowPrintMargin(false);
|
||||
//aceEditor.renderer.setShowPrintMargin(false);
|
||||
aceEditor.renderer.setPrintMarginColumn(false);
|
||||
aceEditor.renderer.setPadding(EDITOR_DEFAULT_PADDING);
|
||||
aceEditor.session.setUseWrapMode(true);
|
||||
|
@ -944,7 +944,7 @@ ul,ol {
|
||||
}
|
||||
|
||||
.ace_print-margin {
|
||||
background-color: @primary-bg-lighter;
|
||||
background-color: fade(@primary-bg-lighter, 50%);
|
||||
}
|
||||
|
||||
.ace_markup.ace_heading {
|
||||
|
@ -45,7 +45,12 @@
|
||||
.img-retina('../img/loader-night.gif', '../img/loader-night2x.gif', 50px, 17px);
|
||||
}
|
||||
|
||||
.ace-tm .ace_cursor {
|
||||
.ace-tm {
|
||||
.ace_cursor {
|
||||
border-left-color: #fff;
|
||||
}
|
||||
|
||||
.ace_print-margin {
|
||||
background-color: @primary-bg-lighter;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user