client/posts: add copying notes to clipboard

Saves some frustration when losing changes due to editing conflict
This commit is contained in:
rr-
2017-08-25 23:53:51 +02:00
parent 674d6c35d7
commit 87735110aa
2 changed files with 71 additions and 0 deletions

View File

@ -66,6 +66,12 @@
<a href class='add'>Add a note</a>
<%= ctx.makeTextarea({disabled: true, text: 'Content (supports Markdown)', rows: '8'}) %>
<a href class='delete inactive'>Delete selected note</a>
<% if (ctx.hasClipboard) { %>
<br/>
<a href class='copy'>Export notes to clipboard</a>
<br/>
<a href class='paste'>Import notes from clipboard</a>
<% } %>
</section>
<% } %>