replaceall.asp 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <%@ codepage="65001" language="VBScript" %>
  2. <% Option Explicit %>
  3. <!-- #INCLUDE file="../../ckeditor.asp" -->
  4. <%
  5. ' You must set "Enable Parent Paths" on your web site
  6. ' in order for the above relative include to work.
  7. ' Or you can use #INCLUDE VIRTUAL="/full path/ckeditor.asp"
  8. %>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  10. <!--
  11. Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
  12. For licensing, see LICENSE.html or http://ckeditor.com/license
  13. -->
  14. <html xmlns="http://www.w3.org/1999/xhtml">
  15. <head>
  16. <title>Sample - CKEditor</title>
  17. <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
  18. <link href="../sample.css" rel="stylesheet" type="text/css"/>
  19. </head>
  20. <body>
  21. <h1 class="samples">
  22. CKEditor Sample
  23. </h1>
  24. <!-- This <div> holds alert messages to be display in the sample page. -->
  25. <div id="alerts">
  26. <noscript>
  27. <p>
  28. <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
  29. support, like yours, you should still see the contents (HTML data) and you should
  30. be able to edit it normally, without a rich editor interface.
  31. </p>
  32. </noscript>
  33. </div>
  34. <!-- This <fieldset> holds the HTML that you will usually find in your pages. -->
  35. <fieldset title="Output">
  36. <legend>Output</legend>
  37. <form action="sample_posteddata.asp" method="post">
  38. <p>
  39. <label for="editor1">
  40. Editor 1:</label><br/>
  41. <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
  42. </p>
  43. <p>
  44. <label for="editor2">
  45. Editor 2:</label><br/>
  46. <textarea cols="80" id="editor2" name="editor2" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
  47. </p>
  48. <p>
  49. <input type="submit" value="Submit"/>
  50. </p>
  51. </form>
  52. </fieldset>
  53. <div id="footer">
  54. <hr />
  55. <p>
  56. CKEditor - The text editor for Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
  57. </p>
  58. <p id="copy">
  59. Copyright &copy; 2003-2011, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
  60. Knabben. All rights reserved.
  61. </p>
  62. </div>
  63. <%
  64. ' Create class instance.
  65. dim editor
  66. set editor = New CKEditor
  67. ' Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
  68. ' editor.basePath = "/ckeditor/"
  69. ' If not set, CKEditor will default to /ckeditor/
  70. editor.basePath = "../../"
  71. ' Replace all textareas with CKEditor.
  72. editor.replaceAll empty
  73. %>
  74. </body>
  75. </html>