1
<%@ CodePage=65001 Language="VBScript"%>
4
* FCKeditor - The text editor for internet
5
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
7
* Licensed under the terms of the GNU Lesser General Public License:
8
* http://www.opensource.org/licenses/lgpl-license.php
10
* For further information visit:
11
* http://www.fckeditor.net/
13
* "Support Open Source software. What about a donation today?"
15
* File Name: sample01.asp
19
* Frederico Caldeira Knabben (fredck@fckeditor.net)
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">
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" />
32
<h1>FCKeditor - ASP - Sample 1</h1>
33
This sample displays a normal HTML form with an FCKeditor with full features
36
<form action="sampleposteddata.asp" method="post" target="_blank">
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.
42
sBasePath = Request.ServerVariables("PATH_INFO")
43
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
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"
52
<input type="submit" value="Submit">