view 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
line wrap: on
line source

<!doctype html>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1">

		<link rel="stylesheet" href="/themes/default.css" />
		  
		<script src="/sceditor.js"></script>
		<script src="/icons/monocons.js"></script>
		<script src="/formats/bbcode.js"></script>
		<script>
			function init() {
				let textarea = document.querySelector('textarea');
				sceditor.create(textarea, {
					format: 'bbcode',
					icons: 'monocons',
				});
			}
		</script>
	</head>
	<body>
		<textarea></textarea>
	</body>
	<script>init();</script>
</html>