added: toggle spell check on f7
fixed: editor size when changing note
This commit is contained in:
parent
b8293768b5
commit
63079c992c
14
main.js
14
main.js
|
@ -285,6 +285,12 @@ var commands = [
|
|||
action: save,
|
||||
shortcut: "ctrl+s",
|
||||
allowunsaved: true
|
||||
},
|
||||
{
|
||||
hint: "Toggle spell check",
|
||||
action: togglespellcheck,
|
||||
allowunsaved: true,
|
||||
shortcut: "F7"
|
||||
}];
|
||||
|
||||
var snippets = [
|
||||
|
@ -319,6 +325,11 @@ var snippets = [
|
|||
cursor: 0
|
||||
}];
|
||||
|
||||
function togglespellcheck()
|
||||
{
|
||||
md.spellcheck = !md.spellcheck;
|
||||
}
|
||||
|
||||
function showinfo()
|
||||
{
|
||||
var tags = gettags(currentnote);
|
||||
|
@ -1824,7 +1835,10 @@ function bindfile(note)
|
|||
preview.innerHTML = md2html(getnotecontent());
|
||||
|
||||
resetfolds();
|
||||
|
||||
md.style.height = "0px";
|
||||
resize();
|
||||
|
||||
setpos(note.pos || 0);
|
||||
|
||||
// to improve...
|
||||
|
|
Loading…
Reference in New Issue