- <div id="eButtons" style="visibility: hidden">\r
- <input onclick="InsertHTML();" type="button" value="Insert HTML"/>\r
- <input onclick="SetContents();" type="button" value="Set Editor Contents"/>\r
- <input onclick="GetContents();" type="button" value="Get Editor Contents (XHTML)"/>\r
- <br/>\r
- <textarea cols="80" id="plainArea" rows="3"><h2>Test</h2><p>This is some <a href="/Test1.html">sample</a> HTML</p></textarea>\r
- <br/>\r
- <br/>\r
- <input onclick="ExecuteCommand('bold');" type="button" value="Execute "bold" Command"/>\r
- <input onclick="ExecuteCommand('link');" type="button" value="Execute "link" Command"/>\r
- <br/>\r
- <br/>\r
- <input onclick="CheckDirty();" type="button" value="checkDirty()"/>\r
- <input onclick="ResetDirty();" type="button" value="resetDirty()"/>\r
+ <div id="eButtons" style="display: none">\r
+ <input onclick="InsertHTML();" type="button" value="Insert HTML" />\r
+ <input onclick="SetContents();" type="button" value="Set Editor Contents" />\r
+ <input onclick="GetContents();" type="button" value="Get Editor Contents (XHTML)" />\r
+ <br />\r
+ <textarea cols="100" id="htmlArea" rows="3"><h2>Test</h2><p>This is some <a href="/Test1.html">sample</a> HTML code.</p></textarea>\r
+ <br />\r
+ <br />\r
+ <input onclick="InsertText();" type="button" value="Insert Text" />\r
+ <br />\r
+ <textarea cols="100" id="txtArea" rows="3"> First line with some leading whitespaces.\r
+\r
+Second line of text preceded by two line breaks.</textarea>\r
+ <br />\r
+ <input onclick="ExecuteCommand('bold');" type="button" value="Execute "bold" Command" />\r
+ <input onclick="ExecuteCommand('link');" type="button" value="Execute "link" Command" />\r
+ <br />\r
+ <br />\r
+ <input onclick="CheckDirty();" type="button" value="checkDirty()" />\r
+ <input onclick="ResetDirty();" type="button" value="resetDirty()" />\r