Mercurial Hosting > sceditor
comparison src/example.html @ 2:c7c738ddbbf8
remove minified
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 04 Aug 2022 17:43:17 -0600 |
parents | 4c4fc447baea |
children | b7725dab7482 |
comparison
equal
deleted
inserted
replaced
1:2366f2960d2e | 2:c7c738ddbbf8 |
---|---|
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | 4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
5 | 5 |
6 <title>SCEditor Demo</title> | 6 <title>SCEditor Demo</title> |
7 | 7 |
8 <link rel="stylesheet" href="minified/themes/default.min.css" id="theme-style" /> | 8 <link rel="stylesheet" href="development/themes/default.css" id="theme-style" /> |
9 | 9 |
10 <script src="minified/sceditor.min.js"></script> | 10 <script src="development/sceditor.js"></script> |
11 <script src="minified/icons/monocons.js"></script> | 11 <script src="development/icons/monocons.js"></script> |
12 <script src="minified/formats/bbcode.js"></script> | 12 <script src="development/formats/bbcode.js"></script> |
13 | 13 |
14 <style> | 14 <style> |
15 html { | 15 html { |
16 font-family: Arial, Helvetica, sans-serif; | 16 font-family: Arial, Helvetica, sans-serif; |
17 font-size: 13px; | 17 font-size: 13px; |
72 <script> | 72 <script> |
73 var textarea = document.getElementById('example'); | 73 var textarea = document.getElementById('example'); |
74 sceditor.create(textarea, { | 74 sceditor.create(textarea, { |
75 format: 'bbcode', | 75 format: 'bbcode', |
76 icons: 'monocons', | 76 icons: 'monocons', |
77 style: 'minified/themes/content/default.min.css' | 77 style: 'development/themes/content/default.css' |
78 }); | 78 }); |
79 | 79 |
80 | 80 |
81 var themeInput = document.getElementById('theme'); | 81 var themeInput = document.getElementById('theme'); |
82 themeInput.onchange = function() { | 82 themeInput.onchange = function() { |
83 var theme = 'minified/themes/' + themeInput.value + '.min.css'; | 83 var theme = 'development/themes/' + themeInput.value + '.css'; |
84 | 84 |
85 document.getElementById('theme-style').href = theme; | 85 document.getElementById('theme-style').href = theme; |
86 }; | 86 }; |
87 </script> | 87 </script> |
88 | 88 |