replace.asp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. <input type="submit" value="Submit"/>
  45. </p>
  46. </form>
  47. </fieldset>
  48. <div id="footer">
  49. <hr />
  50. <p>
  51. CKEditor - The text editor for Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
  52. </p>
  53. <p id="copy">
  54. Copyright &copy; 2003-2011, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
  55. Knabben. All rights reserved.
  56. </p>
  57. </div>
  58. <%
  59. ' Create class instance.
  60. dim editor
  61. set editor = New CKEditor
  62. ' Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
  63. ' editor.basePath = "/ckeditor/"
  64. ' If not set, CKEditor will default to /ckeditor/
  65. editor.basePath = "../../"
  66. ' Replace textarea with id (or name) "editor1".
  67. editor.replaceInstance "editor1"
  68. %>
  69. </body>
  70. </html>