1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
4 For licensing, see LICENSE.html or http://ckeditor.com/license
6 <html xmlns=
"http://www.w3.org/1999/xhtml">
8 <title>ASP integration Samples List
— CKEditor
</title>
9 <link type=
"text/css" rel=
"stylesheet" href=
"../sample.css" />
13 CKEditor Samples List for ASP
— CKEditor Sample
18 <p>The ckeditor.asp file provides a wrapper to ease the work of creating CKEditor instances from classic Asp.
</p>
19 <p>To use it, you must first include it into your page:
21 <!-- #INCLUDE
file=
"../../ckeditor.asp" --
>
23 Of course, you should adjust the path to make it point to the correct location, and maybe use a full path (with
virtual=
"" instead of
file=
"")
25 <p>After that script is included, you can use it in different ways, based on the following pattern:
</p>
29 Create an instance of the CKEditor class:
30 <pre class=
"samples">dim editor
31 set editor = New CKEditor
</pre>
34 Set the path to the folder where CKEditor has been installed, by default it will use /ckeditor/
35 <pre class=
"samples">editor.basePath =
"../../"</pre>
38 Now use one of the three main methods to create the CKEditor instances:
41 Replace textarea with id (or name)
"editor1".
42 <pre class=
"samples">editor.replaceInstance
"editor1"</pre>
45 Replace all textareas with CKEditor.
46 <pre class=
"samples">editor.replaceAll empty
</pre>
49 Create a textarea element and attach CKEditor to it.
50 <pre class=
"samples">editor.editor
"editor1", initialValue
</pre>
55 <p>Before step
3 you can use a number of methods and properties to adjust the behavior of this class and the CKEditor instances
56 that will be created:
</p>
58 <li>returnOutput : if set to true, the functions won't dump the code with response.write, but instead they will return it so
59 you can do anything you want
</li>
60 <li>basePath: location of the CKEditor scripts
</li>
61 <li>initialized: if you set it to true, it means that you have already included the CKEditor.js file into the page and it
62 doesn't have to be generated again.
</li>
63 <li>textareaAttributes: You can set here a Dictionary object with the attributes that you want to output in the call to the
"editor" method.
</li>
65 <li>config: Allows to set config values for all the instances from now on.
</li>
66 <li>instanceConfig: Allows to set config values just for the next instance.
</li>
68 <li>addEventHandler: Adds an event handler for all the instances from now on.
</li>
69 <li>addInstanceEventHandler: Adds an event handler just for the next instance.
</li>
70 <li>addGlobalEventHandler: Adds an event handler for the global CKEDITOR object.
</li>
72 <li>clearEventHandlers: Removes one or all the event handlers from all the instances from now on.
</li>
73 <li>clearInstanceEventHandlers: Removes one or all the event handlers from the next instance.
</li>
74 <li>clearGlobalEventHandlers: Removes one or all the event handlers from the global CKEDITOR object.
</li>
82 <li><a class=
"samples" href=
"replace.asp">Replace existing textareas by code
</a></li>
83 <li><a class=
"samples" href=
"replaceall.asp">Replace all textareas by code
</a></li>
84 <li><a class=
"samples" href=
"standalone.asp">Create instances in asp
</a></li>
90 <li><a class=
"samples" href=
"advanced.asp">Advanced example
</a></li>
91 <li><a class=
"samples" href=
"events.asp">Listening to events
</a></li>
96 CKEditor - The text editor for the Internet -
<a class=
"samples" href=
"http://ckeditor.com/">http://ckeditor.com
</a>
99 Copyright
© 2003-
2011,
<a class=
"samples" href=
"http://cksource.com/">CKSource
</a> - Frederico Knabben. All rights reserved.