diff src/examples/min.html @ 12:933a459aa182

allow selector for textarea
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 07 Aug 2022 13:58:27 -0600
parents 9159df67520a
children 0cb206904499
line wrap: on
line diff
--- a/src/examples/min.html	Sun Aug 07 01:09:17 2022 -0600
+++ b/src/examples/min.html	Sun Aug 07 13:58:27 2022 -0600
@@ -12,8 +12,7 @@
 		<script src="/formats/bbcode.js"></script>
 		<script>
 			function init() {
-				let textarea = document.querySelector('textarea');
-				sceditor.create(textarea, {
+				sceditor.create('textarea', {
 					format: 'bbcode',
 				});
 			}