JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
convert editor to javascript, fix
[peach-html5-editor.git] / demo.html
diff --git a/demo.html b/demo.html
new file mode 100644 (file)
index 0000000..a03a01d
--- /dev/null
+++ b/demo.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8">
+       <link rel="icon" href="data:null">
+       <title>html editor tester</title>
+       <link rel="stylesheet" href="page_dark.css">
+       <style>
+               textarea {
+                       box-sizing: border-box;
+                       width: 100%;
+                       height: 200px
+               }
+               /* optional */
+               .peach_html5_editor {
+                       width: 500px;
+                       height: 500px;
+                       margin: 0 auto;
+               }
+       </style>
+</head>
+<body>
+       <h1>Peach HTML5 Editor test page (compiled version)</h1>
+       <p>This color scheme is just temporary, for testing the cursor and annotations on a variaty of background colors</p>
+       <form action="#" method="get">
+       <p>HTML view. Changes here propagate when you remove your cursor (press tab or click outside)<br><textarea name="in" id="in">&lt;H1>Headline!&lt;/h1>&lt;p&gt;  normal text that is hopefully long enough that it will wrap     around\rand
+spill onto a second line.&lt;/p>    &lt;p  >Text   with lots of extra whitespace
+
+
+
+       in the original html  and no closing p tag       &lt;p>normal paragraph&lt;/p>
+       &lt;p>testing &amp;lt;br&amp;gt; e f&lt;br>g   &lt;br>  h i j &lt;a href="http://example.com">Click me!</a> o p q r&lt;/p>
+       &lt;div style="border: 2px solid #fab">
+       &lt;p> y z     &lt;strong&gt;Bold &lt;em&gt; Italic + Bold&lt;/strong&gt; Italic &lt;/em&gt; Normal&lt;/p&gt;
+&lt;p style="white-space: pre-wrap"&gt;this &amp;lt;p&amp;gt; has     white-space: pre-wrap&lt;/p&gt;
+
+&lt;div style="color: black; background: white;"&gt;
+       &lt;div&gt;I'm in a div&lt;/div&gt;
+       &lt;div&gt;I'm in another div&lt;/div&gt;
+&lt;div&gt;
+&lt;div&gt;
+&amp;nbsp;
+&lt;/div&gt;
+&lt;/div&gt;
+&lt;/div&gt;
+&lt;p>  Above, there's a white div containing 3 divs. The third contains a div which contains just a non-breaking space (&amp;amp;nbsp;)&lt;/p>
+&lt;p>final paragraph.&lt;/p>
+&lt;/div>
+       </textarea></p>
+       <p><input id="button" type="submit" value="loading..." disabled></p>
+       </form>
+       <script src="parser.js"></script>
+       <script src="editor.js"></script>
+       <script src="demo.js"></script>
+       <p><a href="https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=tree">Source</a> - <a href="https://gnu.org/licenses/agpl.html">AGPLv3+</a></p>
+</body>
+</html>