~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/_samples/asp/sample01.asp

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
Import upstream version 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<%@ CodePage=65001 Language="VBScript"%>
 
2
<% Option Explicit %>
 
3
<!--
 
4
 * FCKeditor - The text editor for internet
 
5
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
6
 * 
 
7
 * Licensed under the terms of the GNU Lesser General Public License:
 
8
 *              http://www.opensource.org/licenses/lgpl-license.php
 
9
 * 
 
10
 * For further information visit:
 
11
 *              http://www.fckeditor.net/
 
12
 * 
 
13
 * "Support Open Source software. What about a donation today?"
 
14
 * 
 
15
 * File Name: sample01.asp
 
16
 *      Sample page.
 
17
 * 
 
18
 * File Authors:
 
19
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
20
-->
 
21
<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
 
22
<!-- #INCLUDE file="../../fckeditor.asp" -->
 
23
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
24
<html>
 
25
        <head>
 
26
                <title>FCKeditor - Sample</title>
 
27
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
28
                <meta name="robots" content="noindex, nofollow">
 
29
                <link href="../sample.css" rel="stylesheet" type="text/css" />
 
30
        </head>
 
31
        <body>
 
32
                <h1>FCKeditor - ASP - Sample 1</h1>
 
33
                This sample displays a normal HTML form with an FCKeditor with full features 
 
34
                enabled.
 
35
                <hr>
 
36
                <form action="sampleposteddata.asp" method="post" target="_blank">
 
37
<%
 
38
' Automatically calculates the editor base path based on the _samples directory.
 
39
' This is usefull only for these samples. A real application should use something like this:
 
40
' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
 
41
Dim sBasePath
 
42
sBasePath = Request.ServerVariables("PATH_INFO")
 
43
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
 
44
 
 
45
Dim oFCKeditor
 
46
Set oFCKeditor = New FCKeditor
 
47
oFCKeditor.BasePath     = sBasePath
 
48
oFCKeditor.Value        = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
 
49
oFCKeditor.Create "FCKeditor1"
 
50
%>
 
51
                        <br>
 
52
                        <input type="submit" value="Submit">
 
53
                </form>
 
54
        </body>
 
55
</html>