diff src/bbcode/test.html @ 46:289718f121e4

use bbcode editor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Nov 2022 18:43:38 -0700
parents 96f0c3d65698
children f225e82b2bf8
line wrap: on
line diff
--- a/src/bbcode/test.html	Sun Nov 13 22:07:18 2022 -0700
+++ b/src/bbcode/test.html	Mon Nov 14 18:43:38 2022 -0700
@@ -32,8 +32,7 @@
 			}
 
 			function save(event) {
-				let div = getBbcodeDiv(event.target);
-				let text = div.querySelector('textarea').value;
+				let text = document.querySelector('textarea').value;
 				ajax( 'test.js?text=' + encodeURIComponent(text) );
 			}