diff src/edit.js.luan @ 18:94e26bffd4fb

UI work
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 11 Jul 2022 12:14:05 -0600
parents 0edde02b908c
children da006d1c1eba
line wrap: on
line diff
--- a/src/edit.js.luan	Thu Jul 07 15:30:06 2022 -0600
+++ b/src/edit.js.luan	Mon Jul 11 12:14:05 2022 -0600
@@ -29,5 +29,6 @@
 let postDiv = document.querySelector('[post="<%=post.id%>"]');
 postDiv.querySelector('[output]').style.display = 'none';
 postDiv.querySelector('[edit]').innerHTML = <%= json_string(html) %>;
+postDiv.querySelector('textarea').focus();
 <%
 end