Mercurial Hosting > sceditor
comparison src/examples/min.html @ 7:df1e18048d97
add examples/min.html and better defaults
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 04 Aug 2022 23:46:09 -0600 |
parents | |
children | 9159df67520a |
comparison
equal
deleted
inserted
replaced
6:c26f7240e96b | 7:df1e18048d97 |
---|---|
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <meta name="viewport" content="width=device-width, initial-scale=1"> | |
5 | |
6 <link rel="stylesheet" href="/themes/default.css" /> | |
7 | |
8 <script src="/sceditor.js"></script> | |
9 <script src="/icons/monocons.js"></script> | |
10 <script src="/formats/bbcode.js"></script> | |
11 <script> | |
12 function init() { | |
13 let textarea = document.querySelector('textarea'); | |
14 sceditor.create(textarea, { | |
15 format: 'bbcode', | |
16 icons: 'monocons', | |
17 }); | |
18 } | |
19 </script> | |
20 </head> | |
21 <body> | |
22 <textarea></textarea> | |
23 </body> | |
24 <script>init();</script> | |
25 </html> |