diff --git a/assets/editor.js b/assets/editor.js index 745a093..be8fdf5 100644 --- a/assets/editor.js +++ b/assets/editor.js @@ -26,7 +26,10 @@ textarea.focus(); } + var form = textarea.closest('form'); + var actions = { + save: function () { form.submit(); }, bold: function () { wrap('**', '**', 'bold text'); }, italic: function () { wrap('*', '*', 'italic text'); }, h1: function () { linePrefix('# '); }, diff --git a/assets/page.html b/assets/page.html index 6c35b73..c52d786 100644 --- a/assets/page.html +++ b/assets/page.html @@ -39,7 +39,7 @@
CANCEL - +