Added autosave feature to posts/pages

Added a feature to automatically save posts/pages every 60 seconds as a draft to avoid lost work. Includes a notification in the bottom right of the screen. Still needs a bit more work to avoid saving multiple drafts under different file names. Only auto saves for new posts/pages, not edits.
This commit is contained in:
KuJoe 2024-05-18 03:22:31 -04:00
commit 25fee781cf
5 changed files with 292 additions and 2 deletions

View file

@ -0,0 +1,16 @@
.notice {
position: fixed;
bottom: 20px;
right: 20px;
padding: 10px 20px;
background-color: #f0f9ff;
border: 1px solid #e0e0e0;
border-radius: 5px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
font-size: 14px;
color: #333;
z-index: 999;
display: flex;
align-items: center;
display: none;
}