source: trunk/filemanager/tp/ckeditor/_source/core/config.js @ 2000

Revision 2000, 9.4 KB checked in by amuller, 14 years ago (diff)

Ticket #597 - Implementação do módulo gerenciador de arquivos

Line 
1/*
2Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4*/
5
6/**
7 * @fileOverview Defines the {@link CKEDITOR.config} object, which holds the
8 * default configuration settings.
9 */
10
11CKEDITOR.ENTER_P        = 1;
12CKEDITOR.ENTER_BR       = 2;
13CKEDITOR.ENTER_DIV      = 3;
14
15/**
16 * Holds the default configuration settings. Changes to this object are
17 * reflected in all editor instances, if not specificaly specified for those
18 * instances.
19 * @namespace
20 * @example
21 * // All editor created after the following setting will not load custom
22 * // configuration files.
23 * CKEDITOR.config.customConfig = '';
24 */
25CKEDITOR.config =
26{
27        /**
28         * The URL path for the custom configuration file to be loaded. If not
29         * overloaded with inline configurations, it defaults to the "config.js"
30         * file present in the root of the CKEditor installation directory.<br /><br />
31         *
32         * CKEditor will recursively load custom configuration files defined inside
33         * other custom configuration files.
34         * @type String
35         * @default '&lt;CKEditor folder&gt;/config.js'
36         * @example
37         * // Load a specific configuration file.
38         * CKEDITOR.replace( 'myfiled', { customConfig : '/myconfig.js' } );
39         * @example
40         * // Do not load any custom configuration file.
41         * CKEDITOR.replace( 'myfiled', { customConfig : '' } );
42         */
43        customConfig : CKEDITOR.getUrl( 'config.js' ),
44
45        /**
46         * Whether the replaced element (usually a textarea) is to be updated
47         * automatically when posting the form containing the editor.
48         * @type Boolean
49         * @default true
50         * @example
51         * config.autoUpdateElement = true;
52         */
53        autoUpdateElement : true,
54
55        /**
56         * The base href URL used to resolve relative and absolute URLs in the
57         * editor content.
58         * @type String
59         * @default '' (empty string)
60         * @example
61         * config.baseHref = 'http://www.example.com/path/';
62         */
63        baseHref : '',
64
65        /**
66         * The CSS file(s) to be used to apply style to the contents. It should
67         * reflect the CSS used in the final pages where the contents are to be
68         * used.
69         * @type String|Array
70         * @default '&lt;CKEditor folder&gt;/contents.css'
71         * @example
72         * config.contentsCss = '/css/mysitestyles.css';
73         * config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css'];
74         */
75        contentsCss : CKEDITOR.basePath + 'contents.css',
76
77        /**
78         * The writting direction of the language used to write the editor
79         * contents. Allowed values are 'ltr' for Left-To-Right language (like
80         * English), or 'rtl' for Right-To-Left languages (like Arabic).
81         * @default 'ltr'
82         * @type String
83         * @example
84         * config.contentsLangDirection = 'rtl';
85         */
86        contentsLangDirection : 'ltr',
87
88        /**
89         * The user interface language localization to use. If empty, the editor
90         * automatically localize the editor to the user language, if supported,
91         * otherwise the {@link CKEDITOR.config.defaultLanguage} language is used.
92         * @default true
93         * @type Boolean
94         * @example
95         * // Load the German interface.
96         * config.language = 'de';
97         */
98        language : '',
99
100        /**
101         * The language to be used if {@link CKEDITOR.config.language} is left empty and it's not
102         * possible to localize the editor to the user language.
103         * @default 'en'
104         * @type String
105         * @example
106         * config.defaultLanguage = 'it';
107         */
108        defaultLanguage : 'en',
109
110        /**
111         * Sets the behavior for the ENTER key. It also dictates other behaviour
112         * rules in the editor, like whether the &lt;br&gt; element is to be used
113         * as a paragraph separator when indenting text.
114         * The allowed values are the following constants, and their relative
115         * behavior:
116         * <ul>
117         *     <li>{@link CKEDITOR.ENTER_P} (1): new &lt;p&gt; paragraphs are created;</li>
118         *     <li>{@link CKEDITOR.ENTER_BR} (2): lines are broken with &lt;br&gt; elements;</li>
119         *     <li>{@link CKEDITOR.ENTER_DIV} (3): new &lt;div&gt; blocks are created.</li>
120         * </ul>
121         * <strong>Note</strong>: It's recommended to use the
122         * {@link CKEDITOR.ENTER_P} value because of its semantic value and
123         * correctness. The editor is optimized for this value.
124         * @type Number
125         * @default {@link CKEDITOR.ENTER_P}
126         * @example
127         * // Not recommended.
128         * config.enterMode = CKEDITOR.ENTER_BR;
129         */
130        enterMode : CKEDITOR.ENTER_P,
131
132        /**
133         * Just like the {@link CKEDITOR.config.enterMode} setting, it defines the behavior for the SHIFT+ENTER key.
134         * The allowed values are the following constants, and their relative
135         * behavior:
136         * <ul>
137         *     <li>{@link CKEDITOR.ENTER_P} (1): new &lt;p&gt; paragraphs are created;</li>
138         *     <li>{@link CKEDITOR.ENTER_BR} (2): lines are broken with &lt;br&gt; elements;</li>
139         *     <li>{@link CKEDITOR.ENTER_DIV} (3): new &lt;div&gt; blocks are created.</li>
140         * </ul>
141         * @type Number
142         * @default {@link CKEDITOR.ENTER_BR}
143         * @example
144         * config.shiftEnterMode = CKEDITOR.ENTER_P;
145         */
146        shiftEnterMode : CKEDITOR.ENTER_BR,
147
148        /**
149         * A comma separated list of plugins that are not related to editor
150         * instances. Reserved to plugins that extend the core code only.<br /><br />
151         *
152         * There are no ways to override this setting, except by editing the source
153         * code of CKEditor (_source/core/config.js).
154         * @type String
155         * @example
156         */
157        corePlugins : '',
158
159        /**
160         * Sets the doctype to be used when loading the editor content as HTML.
161         * @type String
162         * @default '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;'
163         * @example
164         * // Set the doctype to the HTML 4 (quirks) mode.
165         * config.docType = '&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;';
166         */
167        docType : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
168
169        /**
170         * Indicates whether the contents to be edited are being inputted as a full
171         * HTML page. A full page includes the &lt;html&gt;, &lt;head&gt; and
172         * &lt;body&gt; tags. The final output will also reflect this setting,
173         * including the &lt;body&gt; contents only if this setting is disabled.
174         * @type Boolean
175         * @default false
176         * @example
177         * config.fullPage = true;
178         */
179        fullPage : false,
180
181        /**
182         * The height of editing area( content ), in relative or absolute, e.g. 30px, 5em.
183         * Note: Percentage unit is not supported yet. e.g. 30%.
184         * @type Number|String
185         * @default '200'
186         * @example
187         * config.height = 500;
188         * config.height = '25em';
189         * config.height = '300px';
190         */
191        height : 200,
192
193        /**
194         * Comma separated list of plugins to load and initialize for an editor
195         * instance. This should be rarely changed, using instead the
196         * {@link CKEDITOR.config.extraPlugins} and
197         * {@link CKEDITOR.config.removePlugins} for customizations.
198         * @type String
199         * @example
200         */
201        plugins : 'about,basicstyles,blockquote,button,clipboard,colorbutton,colordialog,contextmenu,elementspath,enterkey,entities,filebrowser,find,flash,font,format,forms,horizontalrule,htmldataprocessor,image,indent,justify,keystrokes,link,list,maximize,newpage,pagebreak,pastefromword,pastetext,popup,preview,print,removeformat,resize,save,scayt,smiley,showblocks,sourcearea,stylescombo,table,tabletools,specialchar,tab,templates,toolbar,undo,wysiwygarea,wsc',
202
203        /**
204         * List of additional plugins to be loaded. This is a tool setting which
205         * makes it easier to add new plugins, whithout having to touch and
206         * possibly breaking the {@link CKEDITOR.config.plugins} setting.
207         * @type String
208         * @example
209         * config.extraPlugins = 'myplugin,anotherplugin';
210         */
211        extraPlugins : '',
212
213        /**
214         * List of plugins that must not be loaded. This is a tool setting which
215         * makes it easier to avoid loading plugins definied in the
216         * {@link CKEDITOR.config.plugins} setting, whithout having to touch it and
217         * potentially breaking it.
218         * @type String
219         * @example
220         * config.removePlugins = 'elementspath,save,font';
221         */
222        removePlugins : '',
223
224        /**
225         * List of regular expressions to be executed over the input HTML,
226         * indicating code that must stay untouched.
227         * @type Array
228         * @default [] (empty array)
229         * @example
230         * config.protectedSource.push( /<\?[\s\S]*?\?>/g );   // PHP Code
231         * config.protectedSource.push( /<%[\s\S]*?%>/g );   // ASP Code
232         * config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi );   // ASP.Net Code
233         */
234        protectedSource : [],
235
236        /**
237         * The editor tabindex value.
238         * @type Number
239         * @default 0 (zero)
240         * @example
241         * config.tabIndex = 1;
242         */
243        tabIndex : 0,
244
245        /**
246         * The theme to be used to build the UI.
247         * @type String
248         * @default 'default'
249         * @see CKEDITOR.config.skin
250         * @example
251         * config.theme = 'default';
252         */
253        theme : 'default',
254
255        /**
256         * The skin to load. It may be the name of the skin folder inside the
257         * editor installation path, or the name and the path separated by a comma.
258         * @type String
259         * @default 'default'
260         * @example
261         * config.skin = 'v2';
262         * @example
263         * config.skin = 'myskin,/customstuff/myskin/';
264         */
265        skin : 'kama',
266
267        /**
268         * The editor width in CSS size format or pixel integer.
269         * @type String|Number
270         * @default '' (empty)
271         * @example
272         * config.width = 850;
273         * @example
274         * config.width = '75%';
275         */
276        width : '',
277
278        /**
279         * The base Z-index for floating dialogs and popups.
280         * @type Number
281         * @default 10000
282         * @example
283         * config.baseFloatZIndex = 2000
284         */
285        baseFloatZIndex : 10000
286
287};
288
289// PACKAGER_RENAME( CKEDITOR.config )
Note: See TracBrowser for help on using the repository browser.