Fixes and improvements
This commit is contained in:
parent
98128befe9
commit
fd321284f5
@ -71,10 +71,11 @@ define([], function() {
|
||||
}
|
||||
|
||||
constants.THEME_LIST = {
|
||||
"blue": "Blue",
|
||||
"default": "Default",
|
||||
"gray": "Gray",
|
||||
"night": "Night",
|
||||
"school": "School",
|
||||
"school": "School"
|
||||
};
|
||||
|
||||
return constants;
|
||||
|
@ -246,10 +246,10 @@ define([
|
||||
|
||||
// Selection dropdown menu actions
|
||||
$(modalElt.querySelectorAll('.action-select-all')).click(function() {
|
||||
$(documentListElt.querySelectorAll('input[type="checkbox"]')).prop('checked', true).change();
|
||||
$(documentListElt.querySelectorAll('.folder input[type="checkbox"]')).prop('checked', true).change();
|
||||
});
|
||||
$(modalElt.querySelectorAll('.action-unselect-all')).click(function() {
|
||||
$(documentListElt.querySelectorAll('input[type="checkbox"]')).prop('checked', false).change();
|
||||
$(documentListElt.querySelectorAll('.folder input[type="checkbox"]')).prop('checked', false).change();
|
||||
});
|
||||
|
||||
// Delete selection actions
|
||||
|
@ -231,11 +231,11 @@ define([
|
||||
$('.extension-preview-buttons .table-of-contents').on('click', 'a', function(evt) {
|
||||
evt.preventDefault();
|
||||
var id = this.hash;
|
||||
var anchorElt = previewElt.querySelector(id);
|
||||
if(!anchorElt) {
|
||||
var anchorElt = $(id);
|
||||
if(!anchorElt.length) {
|
||||
return;
|
||||
}
|
||||
var previewScrollTop = anchorElt.getBoundingClientRect().top - previewElt.getBoundingClientRect().top + previewElt.scrollTop;
|
||||
var previewScrollTop = anchorElt[0].getBoundingClientRect().top - previewElt.getBoundingClientRect().top + previewElt.scrollTop;
|
||||
previewElt.scrollTop = previewScrollTop;
|
||||
var editorScrollTop = getDestScrollTop(previewScrollTop, htmlSectionList, mdSectionList);
|
||||
editorElt.scrollTop = editorScrollTop;
|
||||
|
@ -862,7 +862,7 @@
|
||||
"<span class="file-title"></span>" can be shared using the following link(s):
|
||||
</p>
|
||||
<div class="msg-share-list share-list hide"></div>
|
||||
<p class="msg-no-share hide"><b>No sharing link yet!</b>
|
||||
<p class="msg-no-share hide alert alert-danger"><b>No sharing link yet!</b>
|
||||
</p>
|
||||
<p class="msg-no-share hide">To collaborate on this document, use <i class="icon-provider-gdrive"></i> <b>Google Drive</b>
|
||||
or <i class="icon-provider-dropbox"></i> <b>Dropbox</b> synchronization from the <i class="icon-provider-stackedit"></i> menu.
|
||||
@ -1157,30 +1157,30 @@
|
||||
</div>
|
||||
<div class="tab-pane" id="tabpane-settings-utils">
|
||||
<div class="tab-pane-button-container">
|
||||
<a href="#" class="btn btn-block btn-primary action-welcome-file"
|
||||
<a href="#" class="btn btn-block btn-default action-welcome-file"
|
||||
data-dismiss="modal"><i class="icon-help-circled"></i>
|
||||
Welcome document</a> <a href="#"
|
||||
class="btn btn-block btn-primary action-welcome-tour"
|
||||
class="btn btn-block btn-default action-welcome-tour"
|
||||
data-dismiss="modal"><i
|
||||
class="icon-help-circled"></i> Welcome tour</a>
|
||||
</div>
|
||||
<div class="tab-pane-button-container">
|
||||
<a href="#"
|
||||
class="btn btn-block btn-primary action-import-docs-settings"><i
|
||||
class="btn btn-block btn-default action-import-docs-settings"><i
|
||||
class="icon-cog-alt"></i> Import docs & settings</a> <a href="#"
|
||||
class="btn btn-block btn-primary action-export-docs-settings"
|
||||
class="btn btn-block btn-default action-export-docs-settings"
|
||||
data-dismiss="modal"><i class="icon-cog-alt"></i>
|
||||
Export docs & settings</a> <input type="file"
|
||||
id="input-file-import-docs-settings" class="hide">
|
||||
</div>
|
||||
<div class="tab-pane-button-container">
|
||||
<a href="#"
|
||||
class="btn btn-block btn-primary action-default-settings"
|
||||
class="btn btn-block btn-default action-default-settings"
|
||||
data-dismiss="modal"><i class="icon-wrench"></i>
|
||||
Load default settings</a> <a href="#" class="btn btn-block btn-primary"
|
||||
Load default settings</a> <a href="#" class="btn btn-block btn-default"
|
||||
data-dismiss="modal" data-toggle="modal"
|
||||
data-target=".modal-app-reset"><i
|
||||
class="icon-fire"></i> Reset application</a> <a target="_blank" href="recovery.html" class="btn btn-block btn-primary"><i
|
||||
class="icon-fire"></i> Reset application</a> <a target="_blank" href="recovery.html" class="btn btn-block btn-default"><i
|
||||
class="icon-medkit"></i> StackEdit recovery</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,8 +2,7 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<img data-stackedit-src="logo-promo-128.png" width="316"
|
||||
height="64" />
|
||||
<img height="64" data-stackedit-src="logo.svg" />
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="pull-right">
|
||||
@ -40,23 +39,9 @@
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Credit:</dt>
|
||||
<dt>Sponsorship:</dt>
|
||||
<dd>
|
||||
<% _.each(libraries, function(url, name) { %> <a target="_blank"
|
||||
href="<%= url %>"><%= name %></a><br /> <% }); %>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Related projects:</dt>
|
||||
<dd>
|
||||
<% _.each(projects, function(url, name) { %> <a target="_blank"
|
||||
href="<%= url %>"><%= name %></a><br /> <% }); %>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Support StackEdit:</dt>
|
||||
<dd>
|
||||
<a target="_blank" href="https://www.gittip.com/stackedit/"><img class="btn-gittip" data-stackedit-src="gittip.png" /></a>
|
||||
<a href="#" class="sponsorship-button"><img height="32" data-stackedit-src="button.svg" /></a>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>
|
||||
<b>AutoSync</b> feature automatically saves all documents to your <i
|
||||
class="icon-provider-<%= providerId %>"></i>
|
||||
<code>Google Drive</code>
|
||||
<b>Google Drive</b>
|
||||
account and keep them synchronized.
|
||||
</p>
|
||||
<div class="form-horizontal">
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>
|
||||
This will save "<span class="file-title"></span>" to your <i
|
||||
class="icon-provider-<%= providerId %>"></i>
|
||||
<code>Google Drive</code>
|
||||
<b>Google Drive</b>
|
||||
account and keep it synchronized.
|
||||
</p>
|
||||
<div class="collapse form-horizontal sync-export-<%= providerId %>-options-collapse">
|
||||
|
@ -620,6 +620,7 @@ define([
|
||||
previewButtons.isOpen = true;
|
||||
previewButtons.x = previewButtonsOffset.x;
|
||||
previewButtons.applyCss();
|
||||
previewButtons.$elt.removeClass('closed');
|
||||
}
|
||||
}
|
||||
|
||||
@ -633,6 +634,7 @@ define([
|
||||
previewButtons.isOpen = false;
|
||||
previewButtons.x = previewButtonsOffset.x + previewButtons.elt.offsetWidth + previewButtonsClosedOffset;
|
||||
previewButtons.applyCss();
|
||||
previewButtons.$elt.addClass('closed');
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
|
@ -742,8 +742,9 @@
|
||||
inputArea.focus();
|
||||
inputArea.selectionStart = stateObj.start;
|
||||
inputArea.selectionEnd = stateObj.end;
|
||||
inputArea.scrollTop = stateObj.scrollTop;
|
||||
/*
|
||||
inputArea.scrollTop = stateObj.scrollTop;
|
||||
|
||||
}
|
||||
else if (doc.selection) {
|
||||
|
||||
@ -815,9 +816,11 @@
|
||||
inputArea.value = stateObj.text;
|
||||
}
|
||||
this.setInputAreaSelection();
|
||||
/*
|
||||
setTimeout(function() {
|
||||
inputArea.scrollTop = stateObj.scrollTop;
|
||||
}, 0);
|
||||
*/
|
||||
};
|
||||
|
||||
// Gets a collection of HTML chunks from the inptut textarea.
|
||||
@ -1405,11 +1408,10 @@
|
||||
|
||||
if (!noCleanup) {
|
||||
fixupInputArea();
|
||||
/*
|
||||
if(!linkOrImage) {
|
||||
inputBox.dispatchEvent(new Event('keydown'));
|
||||
inputBox.adjustCursorPosition();
|
||||
//inputBox.dispatchEvent(new Event('keydown'));
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -294,15 +294,15 @@ Prism.languages.md = (function() {
|
||||
link: md.link,
|
||||
imgref: md.imgref,
|
||||
linkref: md.linkref,
|
||||
url: urlPattern,
|
||||
email: emailPattern,
|
||||
strong: md.strong,
|
||||
em: md.em,
|
||||
strike: md.strike,
|
||||
conflict: /⧸⧸/g,
|
||||
comment: Prism.languages.markup.comment,
|
||||
tag: Prism.languages.markup.tag,
|
||||
entity: Prism.languages.markup.entity,
|
||||
url: urlPattern,
|
||||
email: emailPattern
|
||||
entity: Prism.languages.markup.entity
|
||||
};
|
||||
|
||||
for(var c = 6; c >= 1; c--) {
|
||||
|
Loading…
Reference in New Issue
Block a user