Switch to ACE editor

This commit is contained in:
benweet 2013-09-15 18:10:45 +01:00
parent 0613034688
commit 6b718d407c
5 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
#Date Sun Sep 15 2013 17:46:00
#Date Sun Sep 15 2013 18:10:41
CACHE:
index.html

View File

@ -11855,7 +11855,7 @@ printStackTrace.implementation = function() {}, printStackTrace.implementation.p
}, utils;
});
var VERSION = "2.1.0", MAIN_URL = "http://benweet.github.io/stackedit/", GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1", GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw", GOOGLE_SCOPES = [ "https://www.googleapis.com/auth/drive.install", "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/blogger", "https://picasaweb.google.com/data/" ], GOOGLE_DRIVE_APP_ID = "241271498917", DROPBOX_APP_KEY = "lq6mwopab8wskas", DROPBOX_APP_SECRET = "851fgnucpezy84t", BITLY_ACCESS_TOKEN = "317e033bfd48cf31155a68a536b1860013b09c4c", DEFAULT_FILE_TITLE = "Title", DEFAULT_FOLDER_NAME = "New folder", GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document", EDITOR_DEFAULT_PADDING = 12, CHECK_ONLINE_PERIOD = 12e4, AJAX_TIMEOUT = 3e4, ASYNC_TASK_DEFAULT_TIMEOUT = 6e4, ASYNC_TASK_LONG_TIMEOUT = 18e4, SYNC_PERIOD = 18e4, USER_IDLE_THRESHOLD = 3e5, IMPORT_FILE_MAX_CONTENT_SIZE = 1e5, IMPORT_IMG_MAX_CONTENT_SIZE = 1e7, TEMPORARY_FILE_INDEX = "file.tempIndex", WELCOME_DOCUMENT_TITLE = "Welcome document", DOWNLOAD_PROXY_URL = "http://stackedit-download-proxy.herokuapp.com/", PICASA_PROXY_URL = "http://stackedit-picasa-proxy.herokuapp.com/", WORDPRESS_CLIENT_ID = "3185", WORDPRESS_PROXY_URL = "http://stackedit-wordpress-proxy.herokuapp.com/", SSH_PROXY_URL = "http://stackedit-ssh-proxy.herokuapp.com/", delayedFunction = void 0, BASE_URL = "http://localhost/stackedit/", GOOGLE_CLIENT_ID = "241271498917-lev37kef013q85avc91am1gccg5g8lrb.apps.googleusercontent.com", GITHUB_CLIENT_ID = "e47fef6055344579799d", GATEKEEPER_URL = "http://stackedit-gatekeeper-localhost.herokuapp.com/", TUMBLR_PROXY_URL = "http://stackedit-tumblr-proxy-local.herokuapp.com/";
var VERSION = "2.1.0", MAIN_URL = "http://benweet.github.io/stackedit/", GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1", GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw", GOOGLE_SCOPES = [ "https://www.googleapis.com/auth/drive.install", "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/blogger", "https://picasaweb.google.com/data/" ], GOOGLE_DRIVE_APP_ID = "241271498917", DROPBOX_APP_KEY = "lq6mwopab8wskas", DROPBOX_APP_SECRET = "851fgnucpezy84t", BITLY_ACCESS_TOKEN = "317e033bfd48cf31155a68a536b1860013b09c4c", DEFAULT_FILE_TITLE = "Title", DEFAULT_FOLDER_NAME = "New folder", GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document", EDITOR_DEFAULT_PADDING = 15, CHECK_ONLINE_PERIOD = 12e4, AJAX_TIMEOUT = 3e4, ASYNC_TASK_DEFAULT_TIMEOUT = 6e4, ASYNC_TASK_LONG_TIMEOUT = 18e4, SYNC_PERIOD = 18e4, USER_IDLE_THRESHOLD = 3e5, IMPORT_FILE_MAX_CONTENT_SIZE = 1e5, IMPORT_IMG_MAX_CONTENT_SIZE = 1e7, TEMPORARY_FILE_INDEX = "file.tempIndex", WELCOME_DOCUMENT_TITLE = "Welcome document", DOWNLOAD_PROXY_URL = "http://stackedit-download-proxy.herokuapp.com/", PICASA_PROXY_URL = "http://stackedit-picasa-proxy.herokuapp.com/", WORDPRESS_CLIENT_ID = "3185", WORDPRESS_PROXY_URL = "http://stackedit-wordpress-proxy.herokuapp.com/", SSH_PROXY_URL = "http://stackedit-ssh-proxy.herokuapp.com/", delayedFunction = void 0, BASE_URL = "http://localhost/stackedit/", GOOGLE_CLIENT_ID = "241271498917-lev37kef013q85avc91am1gccg5g8lrb.apps.googleusercontent.com", GITHUB_CLIENT_ID = "e47fef6055344579799d", GATEKEEPER_URL = "http://stackedit-gatekeeper-localhost.herokuapp.com/", TUMBLR_PROXY_URL = "http://stackedit-tumblr-proxy-local.herokuapp.com/";
0 === location.hostname.indexOf("benweet.github.io") && (BASE_URL = MAIN_URL, GOOGLE_CLIENT_ID = "241271498917-jpto9lls9fqnem1e4h6ppds9uob8rpvu.apps.googleusercontent.com",
GITHUB_CLIENT_ID = "fa0d09514da8377ee32e", GATEKEEPER_URL = "http://stackedit-gatekeeper.herokuapp.com/",
@ -23021,9 +23021,9 @@ if (hljs.LANGUAGES.glsl = function(e) {
function C() {
return lightMode ? (e("#wmd-input").replaceWith(function() {
return e('<textarea id="wmd-input">').addClass(this.className).addClass("form-control");
}), void 0) : (I = i.edit("wmd-input"), I.renderer.setShowGutter(!1), I.renderer.setShowPrintMargin(!1),
I.renderer.setPrintMarginColumn(!1), I.renderer.setPadding(EDITOR_DEFAULT_PADDING),
I.session.setUseWrapMode(!0), I.session.setMode("libs/ace_mode"), function(e) {
}), void 0) : (I = i.edit("wmd-input"), I.renderer.setShowGutter(!1), I.renderer.setPrintMarginColumn(!1),
I.renderer.setPadding(EDITOR_DEFAULT_PADDING), I.session.setUseWrapMode(!0), I.session.setMode("libs/ace_mode"),
function(e) {
function n(n) {
var i = e.lines[n];
0 !== i.length && 0 === i[0].type.indexOf("markup.heading.multi") && t.each(e.lines[n - 1], function(e) {

View File

@ -1603,7 +1603,7 @@ ul ul,ol ul,ul ol,ol ol{margin-bottom:15px}
.ace_editor{color:#545454}
.ace-tm{background-color:#ffffff}
.ace-tm .ace_marker-layer .ace_active-line{background-color:#f0f3f4}
.ace-tm .ace_print-margin{background-color:#f0f3f4}
.ace-tm .ace_print-margin{background-color:rgba(240,243,244,0.5)}
.ace-tm .ace_markup.ace_heading{color:#333333;font-weight:bold}
.ace-tm .ace_markup.ace_list{color:#8c8c8c}
.ace-tm .ace_strong{font-weight:bold}

View File

@ -1603,7 +1603,7 @@ ul ul,ol ul,ul ol,ol ol{margin-bottom:15px}
.ace_editor{color:#545454}
.ace-tm{background-color:#ffffff}
.ace-tm .ace_marker-layer .ace_active-line{background-color:#f1f1f1}
.ace-tm .ace_print-margin{background-color:#f1f1f1}
.ace-tm .ace_print-margin{background-color:rgba(241,241,241,0.5)}
.ace-tm .ace_markup.ace_heading{color:#333333;font-weight:bold}
.ace-tm .ace_markup.ace_list{color:#8c8c8c}
.ace-tm .ace_strong{font-weight:bold}

View File

@ -1603,7 +1603,7 @@ ul ul,ol ul,ul ol,ol ol{margin-bottom:15px}
.ace_editor{color:#dedede}
.ace-tm{background-color:#111111}
.ace-tm .ace_marker-layer .ace_active-line{background-color:#232323}
.ace-tm .ace_print-margin{background-color:#232323}
.ace-tm .ace_print-margin{background-color:rgba(35,35,35,0.5)}
.ace-tm .ace_markup.ace_heading{color:#ffffff;font-weight:bold}
.ace-tm .ace_markup.ace_list{color:#a6a6a6}
.ace-tm .ace_strong{font-weight:bold}
@ -1660,3 +1660,4 @@ div.jGrowl div.jGrowl-notification{min-height:80px}
.form-control:focus{-webkit-box-shadow:inset 0 1px 1px rgba(255,255,255,0),0 0 8px rgba(255,255,255,0.75);box-shadow:inset 0 1px 1px rgba(255,255,255,0),0 0 8px rgba(255,255,255,0.75)}
.navbar .working-indicator.show{background-image:url("../img/loader-night.gif")}
@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-night2x.gif");background-size:50px 17px}}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.navbar .working-indicator.show{background-image:url("../img/loader-night2x.gif");background-size:50px 17px}}.ace-tm .ace_cursor{border-left-color:#fff}
.ace-tm .ace_print-margin{background-color:#232323}