1
<%@ codepage="65001" language="VBScript" %>
4
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
5
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
9
* Licensed under the terms of any of the following licenses at your
12
* - GNU General Public License Version 2 or later (the "GPL")
13
* http://www.gnu.org/licenses/gpl.html
15
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
16
* http://www.gnu.org/licenses/lgpl.html
18
* - Mozilla Public License Version 1.1 or later (the "MPL")
19
* http://www.mozilla.org/MPL/MPL-1.1.html
25
<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
26
<!-- #INCLUDE file="../../fckeditor.asp" -->
27
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
28
<html xmlns="http://www.w3.org/1999/xhtml">
30
<title>FCKeditor - Sample</title>
31
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
32
<meta name="robots" content="noindex, nofollow" />
33
<link href="../sample.css" rel="stylesheet" type="text/css" />
37
FCKeditor - ASP - Sample 1
40
This sample displays a normal HTML form with an FCKeditor with full features enabled.
43
<form action="sampleposteddata.asp" method="post" target="_blank">
45
' Automatically calculates the editor base path based on the _samples directory.
46
' This is usefull only for these samples. A real application should use something like this:
47
' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
49
sBasePath = Request.ServerVariables("PATH_INFO")
50
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
53
Set oFCKeditor = New FCKeditor
54
oFCKeditor.BasePath = sBasePath
55
oFCKeditor.Value = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
56
oFCKeditor.Create "FCKeditor1"
59
<input type="submit" value="Submit" />