Implements automatic saving of notes. Issue #40

This is disabled by default and is saved within each browser as localStorage.
Always you can cancel the edit with Esc key.

On the other hand, now also allows you save the notes with Crl+Enter key, which
is more standard.
This commit is contained in:
Matias De lellis
2022-05-17 14:21:02 -03:00
parent 9606f5218e
commit 2066955ec9
4 changed files with 70 additions and 44 deletions

View File

@@ -64,10 +64,7 @@
<div class='note-shares'></div>
<div class='note-tags'></div>
</div>
<div class="note-options">
<!--
<select class="note-share-select" name="users[]" multiple="multiple"></select>
-->
<div class="note-editable-options">
<div class="colors-toolbar">
<button id='color-button' class='round-tool-button'>
<div class="icon-toggle-background" title="{{t "quicknotes" "Colors"}}"></div>
@@ -89,10 +86,11 @@
<button id='save-button'>
{{ saveTxt }}
</button>
<button id='close-button'>{{t "quicknotes" "Close"}}</button>
</div>
<div style="clear: both;"></div>
</div>
<div class="note-disable-options">
<div class="note-noneditable-options">
<div class="buttons-toolbar">
<button id='close-button'>{{t "quicknotes" "Close"}}</button>
</div>