comparison 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
comparison
equal deleted inserted replaced
11:73d62b7a0713 12:933a459aa182
10 <script src="/sceditor.js"></script> 10 <script src="/sceditor.js"></script>
11 <script src="/icons/monocons.js"></script> 11 <script src="/icons/monocons.js"></script>
12 <script src="/formats/bbcode.js"></script> 12 <script src="/formats/bbcode.js"></script>
13 <script> 13 <script>
14 function init() { 14 function init() {
15 let textarea = document.querySelector('textarea'); 15 sceditor.create('textarea', {
16 sceditor.create(textarea, {
17 format: 'bbcode', 16 format: 'bbcode',
18 }); 17 });
19 } 18 }
20 </script> 19 </script>
21 </head> 20 </head>