diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/examples/min.html	Thu Aug 04 23:46:09 2022 -0600
@@ -0,0 +1,25 @@
+<!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>