~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/_source/globals/fckeditorapi.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
Import upstream version 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FCKeditor - The text editor for internet
 
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
4
 * 
 
5
 * Licensed under the terms of the GNU Lesser General Public License:
 
6
 *              http://www.opensource.org/licenses/lgpl-license.php
 
7
 * 
 
8
 * For further information visit:
 
9
 *              http://www.fckeditor.net/
 
10
 * 
 
11
 * "Support Open Source software. What about a donation today?"
 
12
 * 
 
13
 * File Name: fckeditorapi.js
 
14
 *      Create the FCKeditorAPI object that is available as a global object in
 
15
 *      the page where the editor is placed in.
 
16
 * 
 
17
 * File Authors:
 
18
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
19
 */
 
20
 
 
21
var FCKeditorAPI ;
 
22
 
 
23
function FCKeditorAPI_GetInstance( instanceName )
 
24
{
 
25
        return this.__Instances[ instanceName ] ;
 
26
}
 
27
 
 
28
if ( !window.parent.FCKeditorAPI )
 
29
{
 
30
        // Make the FCKeditorAPI object available in the parent window.
 
31
        FCKeditorAPI = window.parent.FCKeditorAPI = new Object() ;
 
32
        FCKeditorAPI.__Instances = new Object() ;
 
33
 
 
34
        // Set the current version.
 
35
        FCKeditorAPI.Version = '2.1 PR' ;
 
36
 
 
37
        // Function used to get a instance of an existing editor present in the 
 
38
        // page.
 
39
        FCKeditorAPI.GetInstance = FCKeditorAPI_GetInstance ;
 
40
}
 
41
else
 
42
        FCKeditorAPI = window.parent.FCKeditorAPI ;
 
43
 
 
44
// Add the current instance to the FCKeditorAPI's instances collection.
 
45
FCKeditorAPI.__Instances[ FCK.Name ] = FCK ;
 
 
b'\\ No newline at end of file'