Switch to ACE editor

This commit is contained in:
benweet 2013-09-15 18:10:14 +01:00
parent efada1b26c
commit 0613034688
4 changed files with 11 additions and 6 deletions

View File

@ -16,7 +16,7 @@ var BITLY_ACCESS_TOKEN = "317e033bfd48cf31155a68a536b1860013b09c4c";
var DEFAULT_FILE_TITLE = "Title"; var DEFAULT_FILE_TITLE = "Title";
var DEFAULT_FOLDER_NAME = "New folder"; var DEFAULT_FOLDER_NAME = "New folder";
var GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document"; var GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document";
var EDITOR_DEFAULT_PADDING = 12; var EDITOR_DEFAULT_PADDING = 15;
var CHECK_ONLINE_PERIOD = 120000; var CHECK_ONLINE_PERIOD = 120000;
var AJAX_TIMEOUT = 30000; var AJAX_TIMEOUT = 30000;
var ASYNC_TASK_DEFAULT_TIMEOUT = 60000; var ASYNC_TASK_DEFAULT_TIMEOUT = 60000;

View File

@ -207,7 +207,7 @@ define([
} }
aceEditor = ace.edit("wmd-input"); aceEditor = ace.edit("wmd-input");
aceEditor.renderer.setShowGutter(false); aceEditor.renderer.setShowGutter(false);
aceEditor.renderer.setShowPrintMargin(false); //aceEditor.renderer.setShowPrintMargin(false);
aceEditor.renderer.setPrintMarginColumn(false); aceEditor.renderer.setPrintMarginColumn(false);
aceEditor.renderer.setPadding(EDITOR_DEFAULT_PADDING); aceEditor.renderer.setPadding(EDITOR_DEFAULT_PADDING);
aceEditor.session.setUseWrapMode(true); aceEditor.session.setUseWrapMode(true);

View File

@ -944,7 +944,7 @@ ul,ol {
} }
.ace_print-margin { .ace_print-margin {
background-color: @primary-bg-lighter; background-color: fade(@primary-bg-lighter, 50%);
} }
.ace_markup.ace_heading { .ace_markup.ace_heading {

View File

@ -45,7 +45,12 @@
.img-retina('../img/loader-night.gif', '../img/loader-night2x.gif', 50px, 17px); .img-retina('../img/loader-night.gif', '../img/loader-night2x.gif', 50px, 17px);
} }
.ace-tm .ace_cursor { .ace-tm {
border-left-color: #fff; .ace_cursor {
} border-left-color: #fff;
}
.ace_print-margin {
background-color: @primary-bg-lighter;
}
}