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

allow selector for textarea
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 07 Aug 2022 13:58:27 -0600
parents 2606bfb75529
children 0cb206904499
line wrap: on
line diff
--- a/src/examples/modified.html	Sun Aug 07 01:09:17 2022 -0600
+++ b/src/examples/modified.html	Sun Aug 07 13:58:27 2022 -0600
@@ -71,8 +71,7 @@
 
 
 		<script>
-			var textarea = document.getElementById('example');
-			sceditor.create(textarea, {
+			sceditor.create('#example', {
 				format: 'bbcode',
 			});