diff src/edit.js.luan @ 60:8b5b1bce7d6b

bcode menus
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 30 Nov 2022 23:50:52 -0700
parents 289718f121e4
children
line wrap: on
line diff
--- a/src/edit.js.luan	Tue Nov 29 18:45:22 2022 -0700
+++ b/src/edit.js.luan	Wed Nov 30 23:50:52 2022 -0700
@@ -18,8 +18,10 @@
 	postDiv.querySelector('[output]').style.display = 'none';
 	bbcodeCreate( postDiv.querySelector('[edit]'), {
 		content: <%= json_string(html_encode(post.content)) %>,
-		save: saveEdit,
-		cancel: cancelEdit,
+		buttons: {
+			Save: saveEdit,
+			Cancel: cancelEdit,
+		}
 	} );
 	let textarea = postDiv.querySelector('textarea');
 	textarea.focus();