annotate sites/all/libraries/ckeditor/_samples/asp/standalone.asp @ 0:ff03f76ab3fe

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