mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Able to edit questionnaires RS text and name Can disable/enable questionnaires for viewing in admin interface RS text entered via new CKEditor including ability to insert tokens/template replace text Added setting table and associated getter/setter functions (currently only used for centre information but could add more)
104 lines
3.9 KiB
HTML
104 lines
3.9 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<!--
|
|
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
|
For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
-->
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>ASP integration Samples List - CKEditor</title>
|
|
<link type="text/css" rel="stylesheet" href="../sample.css" />
|
|
</head>
|
|
<body>
|
|
<h1>
|
|
CKEditor Samples List for ASP
|
|
</h1>
|
|
<h2>
|
|
Overview
|
|
</h2>
|
|
<p>The ckeditor.asp file provides a wrapper to ease the work of creating CKEditor instances from classic Asp.</p>
|
|
<p>To use it, you must first include it into your page:
|
|
<code>
|
|
<!-- #INCLUDE file="../../ckeditor.asp" -->
|
|
</code>
|
|
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="")
|
|
</p>
|
|
<p>After that script is included, you can use it in different ways, based on the following pattern:</p>
|
|
|
|
<ol>
|
|
<li>
|
|
Create an instance of the CKEditor class:
|
|
<pre>dim editor
|
|
set editor = New CKEditor</pre>
|
|
</li>
|
|
<li>
|
|
Set the path to the folder where CKEditor has been installed, by default it will use /ckeditor/
|
|
<pre>editor.basePath = "../../"</pre>
|
|
</li>
|
|
<li>
|
|
Now use one of the three main methods to create the CKEditor instances:
|
|
<ul>
|
|
<li>
|
|
Replace textarea with id (or name) "editor1".
|
|
<pre>editor.replaceInstance "editor1"</pre>
|
|
</li>
|
|
<li>
|
|
Replace all textareas with CKEditor.
|
|
<pre>editor.replaceAll empty</pre>
|
|
</li>
|
|
<li>
|
|
Create a textarea element and attach CKEditor to it.
|
|
<pre>editor.editor "editor1", initialValue</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
<p>Before step 3 you can use a number of methods and properties to adjust the behavior of this class and the CKEditor instances
|
|
that will be created:</p>
|
|
<ul>
|
|
<li>returnOutput : if set to true, the functions won't dump the code with response.write, but instead they will return it so
|
|
you can do anything you want</li>
|
|
<li>basePath: location of the CKEditor scripts</li>
|
|
<li>initialized: if you set it to true, it means that you have already included the CKEditor.js file into the page and it
|
|
doesn't have to be generated again.</li>
|
|
<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>
|
|
|
|
<li>config: Allows to set config values for all the instances from now on.</li>
|
|
<li>instanceConfig: Allows to set config values just for the next instance.</li>
|
|
|
|
<li>addEventHandler: Adds an event handler for all the instances from now on.</li>
|
|
<li>addInstanceEventHandler: Adds an event handler just for the next instance.</li>
|
|
<li>addGlobalEventHandler: Adds an event handler for the global CKEDITOR object.</li>
|
|
|
|
<li>clearEventHandlers: Removes one or all the event handlers from all the instances from now on.</li>
|
|
<li>clearInstanceEventHandlers: Removes one or all the event handlers from the next instance.</li>
|
|
<li>clearGlobalEventHandlers: Removes one or all the event handlers from the global CKEDITOR object.</li>
|
|
|
|
</ul>
|
|
|
|
<h2>
|
|
Basic Samples
|
|
</h2>
|
|
<ul>
|
|
<li><a href="replace.asp">Replace existing textareas by code</a></li>
|
|
<li><a href="replaceAll.asp">Replace all textareas by code</a></li>
|
|
<li><a href="standalone.asp">Create instances in asp</a></li>
|
|
</ul>
|
|
<h2>
|
|
Advanced Samples
|
|
</h2>
|
|
<ul>
|
|
<li><a href="advanced.asp">Advanced example</a></li>
|
|
<li><a href="events.asp">Listening to events</a></li>
|
|
</ul>
|
|
<div id="footer">
|
|
<hr />
|
|
<p>
|
|
CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
|
|
</p>
|
|
<p id="copy">
|
|
Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|