PluginProbe
Wp-Insert / 1.2
Wp-Insert v1.2
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / fckeditor / _samples / asp / sample01.asp

sample01.asp in Wp-Insert 1.2, at fckeditor/_samples/asp/sample01.asp

125 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <%@ codepage="65001" language="VBScript" %>
2
3 <% Option Explicit %>
4
5 <!--
6
7 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
8
9 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
10
11 *
12
13 * == BEGIN LICENSE ==
14
15 *
16
17 * Licensed under the terms of any of the following licenses at your
18
19 * choice:
20
21 *
22
23 * - GNU General Public License Version 2 or later (the "GPL")
24
25 * http://www.gnu.org/licenses/gpl.html
26
27 *
28
29 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
30
31 * http://www.gnu.org/licenses/lgpl.html
32
33 *
34
35 * - Mozilla Public License Version 1.1 or later (the "MPL")
36
37 * http://www.mozilla.org/MPL/MPL-1.1.html
38
39 *
40
41 * == END LICENSE ==
42
43 *
44
45 * Sample page.
46
47 -->
48
49 <% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
50
51 <!-- #INCLUDE file="../../fckeditor.asp" -->
52
53 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
54
55 <html xmlns="http://www.w3.org/1999/xhtml">
56
57 <head>
58
59 <title>FCKeditor - Sample</title>
60
61 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
62
63 <meta name="robots" content="noindex, nofollow" />
64
65 <link href="../sample.css" rel="stylesheet" type="text/css" />
66
67 </head>
68
69 <body>
70
71 <h1>
72
73 FCKeditor - ASP - Sample 1
74
75 </h1>
76
77 <div>
78
79 This sample displays a normal HTML form with an FCKeditor with full features enabled.
80
81 </div>
82
83 <hr />
84
85 <form action="sampleposteddata.asp" method="post" target="_blank">
86
87 <%
88
89 ' Automatically calculates the editor base path based on the _samples directory.
90
91 ' This is usefull only for these samples. A real application should use something like this:
92
93 ' oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
94
95 Dim sBasePath
96
97 sBasePath = Request.ServerVariables("PATH_INFO")
98
99 sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
100
101
102
103 Dim oFCKeditor
104
105 Set oFCKeditor = New FCKeditor
106
107 oFCKeditor.BasePath = sBasePath
108
109 oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
110
111 oFCKeditor.Create "FCKeditor1"
112
113 %>
114
115 <br />
116
117 <input type="submit" value="Submit" />
118
119 </form>
120
121 </body>
122
123 </html>
124
125