diff options
| author | rr- <rr-@sakuya.pl> | 2017-08-25 23:53:51 +0200 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2017-08-25 23:53:51 +0200 |
| commit | 87735110aa869d114d60f98e5c20ae0c671fa182 (patch) | |
| tree | 646a4505bc943761eaf94e6f0f8de76a28a6927a /client/html | |
| parent | 674d6c35d7eb52c7504cfd80cf7b1c203e543bde (diff) | |
client/posts: add copying notes to clipboard
Saves some frustration when losing changes due to editing conflict
Diffstat (limited to 'client/html')
| -rw-r--r-- | client/html/post_edit_sidebar.tpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/html/post_edit_sidebar.tpl b/client/html/post_edit_sidebar.tpl index 4283c25..0fb878b 100644 --- a/client/html/post_edit_sidebar.tpl +++ b/client/html/post_edit_sidebar.tpl @@ -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> <% } %> |