annotate src/test/sceditor.html @ 52:9f8ebc757814

add convert urls
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 23 Nov 2022 23:29:16 -0700
parents 1ac7aee13eca
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 <!doctype html>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 <html>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 <head>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 <meta name="viewport" content="width=device-width, initial-scale=1">
40
1ac7aee13eca test cleanup
Franklin Schmidt <fschmidt@gmail.com>
parents: 39
diff changeset
5 <link rel="stylesheet" href="http://sceditor.reactionary.software/themes/default.css" />
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 <style>
37
Franklin Schmidt <fschmidt@gmail.com>
parents: 36
diff changeset
7 div.sceditor-container input[type="text"] {
Franklin Schmidt <fschmidt@gmail.com>
parents: 36
diff changeset
8 width: 300px;
Franklin Schmidt <fschmidt@gmail.com>
parents: 36
diff changeset
9 }
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 </style>
40
1ac7aee13eca test cleanup
Franklin Schmidt <fschmidt@gmail.com>
parents: 39
diff changeset
11 <script src="http://sceditor.reactionary.software/sceditor.js"></script>
1ac7aee13eca test cleanup
Franklin Schmidt <fschmidt@gmail.com>
parents: 39
diff changeset
12 <script src="http://sceditor.reactionary.software/formats/bbcode.js"></script>
1ac7aee13eca test cleanup
Franklin Schmidt <fschmidt@gmail.com>
parents: 39
diff changeset
13 <script src="http://sceditor.reactionary.software/icons/material.js"></script>
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 <script>
39
Franklin Schmidt <fschmidt@gmail.com>
parents: 38
diff changeset
15 sceditor.icons.icons.strike = '<path d="M23,12V14H18.61C19.61,16.14 19.56,22 12.38,22C4.05,22.05 4.37,15.5 4.37,15.5L8.34,15.55C8.37,18.92 11.5,18.92 12.12,18.88C12.76,18.83 15.15,18.84 15.34,16.5C15.42,15.41 14.32,14.58 13.12,14H1V12H23M19.41,7.89L15.43,7.86C15.43,7.86 15.6,5.09 12.15,5.08C8.7,5.06 9,7.28 9,7.56C9.04,7.84 9.34,9.22 12,9.88H5.71C5.71,9.88 2.22,3.15 10.74,2C19.45,0.8 19.43,7.91 19.41,7.89Z" />';
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 function init() {
39
Franklin Schmidt <fschmidt@gmail.com>
parents: 38
diff changeset
18 sceditor.create('textarea', {
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 toolbar: 'source|link,image,youtube|code,bold,italic,underline,strike,superscript,size,color|quote,orderedlist,bulletlist',
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 autoExpand: true,
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 resizeMaxHeight: -1,
37
Franklin Schmidt <fschmidt@gmail.com>
parents: 36
diff changeset
22 //resizeEnabled: false,
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 width: '100%',
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 height: 100,
38
19269d18b949 sceditor work
Franklin Schmidt <fschmidt@gmail.com>
parents: 37
diff changeset
25 //emoticonsEnabled: false,
36
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 });
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 }
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 </script>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 </head>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 <body onload="init()">
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
31 <p>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
32 <a href="https://www.sceditor.com/">SCEditor</a>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
33 </p>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
34 <textarea></textarea>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
35 </body>
b54e9e2212b7 try sceditor
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
36 </html>