standalone.asp 2.3 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. Editor 1:
  40. </p>
  41. <p>
  42. <%
  43. dim initialValue, editor
  44. ' The initial value to be displayed in the editor.
  45. initialValue = "<p>This is some <strong>sample text</strong>.</p>"
  46. ' Create class instance.
  47. set editor = New CKEditor
  48. ' Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
  49. ' editor.basePath = "/ckeditor/"
  50. ' If not set, CKEditor will default to /ckeditor/
  51. editor.basePath = "../../"
  52. ' Create textarea element and attach CKEditor to it.
  53. editor.editor "editor1", initialValue
  54. %>
  55. <input type="submit" value="Submit"/>
  56. </p>
  57. </form>
  58. </fieldset>
  59. <div id="footer">
  60. <hr />
  61. <p>
  62. CKEditor - The text editor for Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
  63. </p>
  64. <p id="copy">
  65. Copyright &copy; 2003-2011, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
  66. Knabben. All rights reserved.
  67. </p>
  68. </div>
  69. </body>
  70. </html>