PageRenderTime 26ms CodeModel.GetById 14ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/source/Plug-in/fck/editor/_source/fckconstants.js

http://prosporous.googlecode.com/
JavaScript | 56 lines | 20 code | 8 blank | 28 comment | 0 complexity | 65163c393c6f1c198c3ea4bb86e27d69 MD5 | raw file
 1/*
 2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 3 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
 4 *
 5 * == BEGIN LICENSE ==
 6 *
 7 * Licensed under the terms of any of the following licenses at your
 8 * choice:
 9 *
10 *  - GNU General Public License Version 2 or later (the "GPL")
11 *    http://www.gnu.org/licenses/gpl.html
12 *
13 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14 *    http://www.gnu.org/licenses/lgpl.html
15 *
16 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17 *    http://www.mozilla.org/MPL/MPL-1.1.html
18 *
19 * == END LICENSE ==
20 *
21 * Defines some constants used by the editor. These constants are also
22 * globally available in the page where the editor is placed.
23 */
24
25// Editor Instance Status.
26var FCK_STATUS_NOTLOADED	= window.parent.FCK_STATUS_NOTLOADED	= 0 ;
27var FCK_STATUS_ACTIVE		= window.parent.FCK_STATUS_ACTIVE		= 1 ;
28var FCK_STATUS_COMPLETE		= window.parent.FCK_STATUS_COMPLETE		= 2 ;
29
30// Tristate Operations.
31var FCK_TRISTATE_OFF		= window.parent.FCK_TRISTATE_OFF		= 0 ;
32var FCK_TRISTATE_ON			= window.parent.FCK_TRISTATE_ON			= 1 ;
33var FCK_TRISTATE_DISABLED	= window.parent.FCK_TRISTATE_DISABLED	= -1 ;
34
35// For unknown values.
36var FCK_UNKNOWN				= window.parent.FCK_UNKNOWN				= -9 ;
37
38// Toolbar Items Style.
39var FCK_TOOLBARITEM_ONLYICON	= window.parent.FCK_TOOLBARITEM_ONLYICON	= 0 ;
40var FCK_TOOLBARITEM_ONLYTEXT	= window.parent.FCK_TOOLBARITEM_ONLYTEXT	= 1 ;
41var FCK_TOOLBARITEM_ICONTEXT	= window.parent.FCK_TOOLBARITEM_ICONTEXT	= 2 ;
42
43// Edit Mode
44var FCK_EDITMODE_WYSIWYG	= window.parent.FCK_EDITMODE_WYSIWYG	= 0 ;
45var FCK_EDITMODE_SOURCE		= window.parent.FCK_EDITMODE_SOURCE		= 1 ;
46
47var FCK_IMAGES_PATH = 'images/' ;		// Check usage.
48var FCK_SPACER_PATH = 'images/spacer.gif' ;
49
50var CTRL	= 1000 ;
51var SHIFT	= 2000 ;
52var ALT		= 4000 ;
53
54var FCK_STYLE_BLOCK		= 0 ;
55var FCK_STYLE_INLINE	= 1 ;
56var FCK_STYLE_OBJECT	= 2 ;