JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _samples / asp / index.html
diff --git a/_samples/asp/index.html b/_samples/asp/index.html
new file mode 100644 (file)
index 0000000..e40ec45
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
+<!--\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.html or http://ckeditor.com/license\r
+-->\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+<head>\r
+       <title>ASP integration Samples List - CKEditor</title>\r
+       <link type="text/css" rel="stylesheet" href="../sample.css" />\r
+</head>\r
+<body>\r
+       <h1>\r
+               CKEditor Samples List for ASP\r
+       </h1>\r
+       <h2>\r
+               Overview\r
+       </h2>\r
+       <p>The ckeditor.asp file provides a wrapper to ease the work of creating CKEditor instances from classic Asp.</p>\r
+       <p>To use it, you must first include it into your page:\r
+       <code>\r
+               &lt;!-- #INCLUDE file="../../ckeditor.asp" --&gt;\r
+       </code>\r
+       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="")\r
+       </p>\r
+       <p>After that script is included, you can use it in different ways, based on the following pattern:</p>\r
+\r
+<ol>\r
+       <li>\r
+               Create an instance of the CKEditor class:\r
+<pre>dim editor\r
+set editor = New CKEditor</pre>\r
+       </li>\r
+       <li>\r
+               Set the path to the folder where CKEditor has been installed, by default it will use /ckeditor/\r
+               <pre>editor.basePath = "../../"</pre>\r
+       </li>\r
+       <li>\r
+       Now use one of the three main methods to create the CKEditor instances:\r
+       <ul>\r
+               <li>\r
+                               Replace textarea with id (or name) "editor1".\r
+                       <pre>editor.replaceInstance "editor1"</pre>\r
+               </li>\r
+               <li>\r
+                       Replace all textareas with CKEditor.\r
+                       <pre>editor.replaceAll empty</pre>\r
+               </li>\r
+               <li>\r
+                       Create a textarea element and attach CKEditor to it.\r
+                       <pre>editor.editor "editor1", initialValue</pre>\r
+               </li>\r
+       </ul>\r
+       </li>\r
+</ol>\r
+<p>Before step 3 you can use a number of methods and properties to adjust the behavior of this class and the CKEditor instances\r
+that will be created:</p>\r
+<ul>\r
+       <li>returnOutput : if set to true, the functions won't dump the code with response.write, but instead they will return it so\r
+       you can do anything you want</li>\r
+       <li>basePath: location of the CKEditor scripts</li>\r
+       <li>initialized: if you set it to true, it means that you have already included the CKEditor.js file into the page and it\r
+               doesn't have to be generated again.</li>\r
+       <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>\r
+\r
+       <li>config: Allows to set config values for all the instances from now on.</li>\r
+       <li>instanceConfig: Allows to set config values just for the next instance.</li>\r
+\r
+       <li>addEventHandler: Adds an event handler for all the instances from now on.</li>\r
+       <li>addInstanceEventHandler: Adds an event handler just for the next instance.</li>\r
+       <li>addGlobalEventHandler: Adds an event handler for the global CKEDITOR object.</li>\r
+\r
+       <li>clearEventHandlers: Removes one or all the event handlers from all the instances from now on.</li>\r
+       <li>clearInstanceEventHandlers: Removes one or all the event handlers  from the next instance.</li>\r
+       <li>clearGlobalEventHandlers: Removes one or all the event handlers  from the global CKEDITOR object.</li>\r
+\r
+</ul>\r
+\r
+       <h2>\r
+               Basic Samples\r
+       </h2>\r
+       <ul>\r
+               <li><a href="replace.asp">Replace existing textareas by code</a></li>\r
+               <li><a href="replaceAll.asp">Replace all textareas by code</a></li>\r
+               <li><a href="standalone.asp">Create instances in asp</a></li>\r
+       </ul>\r
+       <h2>\r
+               Advanced Samples\r
+       </h2>\r
+       <ul>\r
+               <li><a href="advanced.asp">Advanced example</a></li>\r
+               <li><a href="events.asp">Listening to events</a></li>\r
+       </ul>\r
+       <div id="footer">\r
+               <hr />\r
+               <p>\r
+                       CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>\r
+               </p>\r
+               <p id="copy">\r
+                       Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.\r
+               </p>\r
+       </div>\r
+</body>\r
+</html>\r