Integration"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(Created page with '{{Integration Introduction_2.x|language=ASP|ext=asp|classext=asp}} === Examples === To start the CKFinder, basically we need to do three things: * Create an instance of the CKFi…')
 
(Article contents proof-read and formatted)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Integration Introduction_2.x|language=ASP|ext=asp|classext=asp}}
+
__TOC__
 +
{{CKFinder_2.x Integration Introduction|language=ASP|ext=asp|classext=asp}}
  
=== Examples ===
+
=== Example ===
To start the CKFinder, basically we need to do three things:
+
In order to launch CKFinder, you need to do three things:  
* Create an instance of the CKFinder class.
+
* Create an instance of the <code>CKFinder</code> class.
 
* Assign CKFinder properties.
 
* Assign CKFinder properties.
* Call the '''Create''' function.
+
* Call the <code>Create</code> method.
  
 
+
An example of creating CKFinder using an ASP class:
{{Integration Javascript Example_2.x}}
+
<source lang="asp">
The example of creating CKFinder using an ASP class:
 
<pre>
 
 
<%
 
<%
 
Dim oFinder
 
Dim oFinder
Line 18: Line 17:
 
oFinder.Create
 
oFinder.Create
 
%>
 
%>
</pre>
+
</source>
 
 
For a full working examples please refer to the "'''_samples'''" directory. Note that in both cases it is required to include the integration file (ckfinder.js or ckfinder.asp) to have access to the CKFinder class.
 
  
{{Integration Javascript_2.x}}
+
For a full working examples please refer to the <code>_samples</code> directory.
  
{{Integration Properties_2.x}}
+
== Integration methods ==
 +
* [[/JavaScript|JavaScript integration]] &ndash; the preferred integration method, simple yet powerful.
 +
* [[/JavaScript V1|JavaScript integration (V1)]] &ndash; the old "V1" way, useful when migrating from CKFinder 1.x because it makes it possible to reuse existing code.
 +
* [[/ASP V1| ASP integration]] &ndash; if you have not worked with JavaScript before or the JavaScript integration seems to be too complicated, it might be the way to go for you.

Latest revision as of 10:43, 21 November 2011

Introduction

Before reading this section, please read the installation and configuration instructions and make sure that the examples located in the _samples directory are working correctly.

The _samples directory contains HTML files with examples of launching CKFinder by using the JavaScript code as well as a asp folder with examples of launching CKFinder by using the ASP language.

The following files are used when either the JavaScript or the ASP method of launching CKFinder is used:

  • ckfinder.js in case of the JavaScript integration method,
  • ckfinder_v1.js in case of JavaScript V1 integration method (useful when migrating from CKFinder 1.x),
  • ckfinder.asp in case of the ASP integration method.

Example

In order to launch CKFinder, you need to do three things:

  • Create an instance of the CKFinder class.
  • Assign CKFinder properties.
  • Call the Create method.

An example of creating CKFinder using an ASP class:

<%
Dim oFinder
Set oFinder = New CKFinder
oFinder.BasePath = "/ckfinder"
oFinder.Width = "800"
oFinder.Create
%>

For a full working examples please refer to the _samples directory.

Integration methods

  • JavaScript integration – the preferred integration method, simple yet powerful.
  • JavaScript integration (V1) – the old "V1" way, useful when migrating from CKFinder 1.x because it makes it possible to reuse existing code.
  • ASP integration – if you have not worked with JavaScript before or the JavaScript integration seems to be too complicated, it might be the way to go for you.
This page was last edited on 21 November 2011, at 10:43.