Ticket #5998: config.js

File config.js, 34.5 KB (added by Vytenis Urbonavičius, 9 years ago)

Sample config file

Line 
1/*
2Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4*/
5
6/*
7        Sample configuration file has been written by Vytenis Urbonavičius (UAB, "VISAITA"; Lithuania)
8        It is very much based on the official documentation, which can be found here:
9                http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
10        Please, do not remove this comment when working with sample config file.
11*/
12
13CKEDITOR.editorConfig = function( config )
14{
15
16        // Whether the replaced element (usually a textarea) is to be updated automatically when posting the form containing the editor.
17                // CKEDITOR.config.autoUpdateElement = true;
18               
19               
20        // The base Z-index for floating dialogs and popups.
21                // CKEDITOR.config.baseFloatZIndex = 10000;
22               
23               
24        // The base href URL used to resolve relative and absolute URLs in the editor content.
25                // CKEDITOR.config.baseHref = '';
26               
27               
28        // A list of keystrokes to be blocked if not defined in the CKEDITOR.config.keystrokes setting. In this way it is possible to block the default browser behavior for those keystrokes.
29                /*
30                config.blockedKeystrokes = [
31                        CKEDITOR.CTRL + 66 // CTRL+B,
32                        CKEDITOR.CTRL + 73 // CTRL+I,
33                        CKEDITOR.CTRL + 85 // CTRL+U
34                ];
35                */
36               
37        // Sets the "class" attribute to be used on the body element of the editing area.
38                /*
39                config.bodyClass = '';
40                */
41               
42        // Sets the "id" attribute to be used on the body element of the editing area.
43                /*
44                config.bodyId = '';
45                */
46               
47        // Whether preserve browser native context menu when 'Ctrl' or 'Meta' key is pressed while open context menu.
48                // config.browserContextMenuOnCtrl = true;
49               
50               
51        // Holds the style definition to be used to apply the text background color.
52                /*
53                config.colorButton_backStyle = {
54                        element : 'span',
55                        styles : {
56                                'background-color' : '#(color)'
57                        }
58                };
59                */
60               
61               
62        // Defines the colors to be displayed in the color selectors. It's a string containing the hexadecimal notation for HTML colors, without the "#" prefix.
63                // config.colorButton_colors = '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF'
64               
65               
66        // Whether to enable the "More Colors..." button in the color selectors.
67                // config.colorButton_enableMore = false;
68               
69               
70        // Holds the style definition to be used to apply the text foreground color.
71                /*
72                config.colorButton_foreStyle = {
73                        element : 'span',
74                        styles : {
75                                'color' : '#(color)'
76                        }
77                };
78                */
79               
80               
81        // The CSS file(s) to be used to apply style to the contents. It should reflect the CSS used in the final pages where the contents are to be used.
82                //config.contentsCss = '<CKEditor folder>/contents.css' ;
83                //config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css'];
84               
85               
86        // The writting direction of the language used to write the editor contents. Allowed values are 'ltr' for Left-To-Right language (like English), or 'rtl' for Right-To-Left languages (like Arabic).
87                // config.contentsLangDirection = 'ltr';
88               
89               
90        // Language code of the writting language which is used to author the editor contents.
91                // config.contentsLanguage = 'fr';
92               
93               
94        // <static> {String}  CKEDITOR.config.corePlugins
95        // A comma separated list of plugins that are not related to editor instances. Reserved to plugins that extend the core code only.
96        // There are no ways to override this setting, except by editing the source code of CKEditor (_source/core/config.js).
97               
98               
99        // The style definition to be used to apply the bold style in the text.
100                // config.coreStyles_bold = { element : 'b', overrides : 'strong' };
101                // config.coreStyles_bold = { element : 'span', attributes : {'class': 'Bold'} };
102               
103               
104        // The style definition to be used to apply the italic style in the text.
105                // config.coreStyles_italic = { element : 'i', overrides : 'em' };
106                // config.coreStyles_italic = { element : 'span', attributes : {'class': 'Italic'} };
107               
108               
109        // The style definition to be used to apply the subscript style in the text.
110                // config.coreStyles_subscript = { element : 'span', attributes : {'class': 'Subscript'}, overrides : 'sub' };
111               
112               
113        // The style definition to be used to apply the superscript style in the text.
114                // config.coreStyles_superscript = { element : 'span', attributes : {'class': 'Superscript'}, overrides : 'sup' };
115               
116               
117        // The style definition to be used to apply the underline style in the text.
118                // config.coreStyles_underline = { element : 'span', attributes : {'class': 'Underline'}};
119               
120               
121        // The style definition to be used to apply the strike style in the text.
122                // config.coreStyles_strike = { element : 'span', attributes : {'class': 'StrikeThrough'}, overrides : 'strike' };
123               
124               
125        // The URL path for the custom configuration file to be loaded. If not overloaded with inline configurations, it defaults to the "config.js" file present in the root of the CKEditor installation directory.
126        // CKEditor will recursively load custom configuration files defined inside other custom configuration files.
127                // CKEDITOR.replace( 'myfiled', { customConfig : '' } );
128               
129               
130        // The language to be used if CKEDITOR.config.language is left empty and it's not possible to localize the editor to the user language.
131                // config.defaultLanguage = 'en';
132               
133               
134        // The color of the dialog background cover. It should be a valid CSS color string.
135                // config.dialog_backgroundCoverColor = 'white'
136               
137               
138        // The opacity of the dialog background cover. It should be a number within the range [0.0, 1.0].
139                // config.dialog_backgroundCoverOpacity = 0.5;
140               
141               
142        // The distance of magnetic borders used in moving and resizing dialogs, measured in pixels.
143                // config.dialog_magnetDistance = 20;
144               
145               
146        // If the dialog has more than one tab, put focus into the first tab as soon as dialog is opened.
147                // config.dialog_startupFocusTab = false;
148               
149               
150        // Disables the built-in spell checker while typing natively available in the browser (currently Firefox and Safari only).
151        // Even if word suggestions will not appear in the CKEditor context menu, this feature is useful to help quickly identifying misspelled words.
152        // This setting is currently compatible with Firefox only due to limitations in other browsers.
153                // config.disableNativeSpellChecker = true;
154               
155               
156        // Disables the "table tools" offered natively by the browser (currently Firefox only) to make quick table editing operations, like adding or deleting rows and columns.
157                // config.disableNativeTableHandles = true;
158               
159               
160        // Disables the ability of resize objects (image and tables) in the editing area.
161                // config.disableObjectResizing = false;
162               
163               
164        // Sets the doctype to be used when loading the editor content as HTML.
165                // config.docType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
166               
167               
168        // Whether to render or not the editing block area in the editor interface.
169                // config.editingBlock = true;
170               
171        // The e-mail address anti-spam protection option. The protection will be applied when creating or modifying e-mail links through the editor interface.
172        // Two methods of protection can be choosed:
173        //              1.  The e-mail parts (name, domain and any other query string) are assembled into a function call pattern. Such function must be provided by the developer in the pages that will use the contents.
174        //              2. Only the e-mail address is obfuscated into a special string that has no meaning for humans or spam bots, but which is properly rendered and accepted by the browser.
175        // Both approaches require JavaScript to be enabled.
176                // config.emailProtection = '';
177                // config.emailProtection = 'mt(NAME,DOMAIN,SUBJECT,BODY)';
178                config.emailProtection = 'encode';
179               
180        // Sets the behavior for the ENTER key. It also dictates other behaviour rules in the editor, like whether the <br> element is to be used as a paragraph separator when indenting text. The allowed values are the following constants, and their relative behavior:
181        //      * CKEDITOR.ENTER_P (1): new <p> paragraphs are created;
182        //      * CKEDITOR.ENTER_BR (2): lines are broken with <br> elements;
183        //      * CKEDITOR.ENTER_DIV (3): new <div> blocks are created.
184                config.enterMode = CKEDITOR.ENTER_DIV;
185               
186               
187        // Whether to use HTML entities in the output.
188                // config.entities = true;
189               
190               
191        // An additional list of entities to be used. It's a string containing each entry separated by a comma. Entities names or number must be used, exclusing the "&" preffix and the ";" termination.
192                // CKEDITOR.config.entities_additional = '#39' // single quote
193               
194               
195        // Whether to convert some symbols, mathematical symbols, and Greek letters to HTML entities. This may be more relevant for users typing text written in Greek. The list of entities can be found at the W3C HTML 4.01 Specification, section 24.3.1.
196                // config.entities_greek = true;
197               
198               
199        // Whether to convert some Latin characters (Latin alphabet No. 1, ISO 8859-1) to HTML entities. The list of entities can be found at the W3C HTML 4.01 Specification, section 24.2.1.
200                // config.entities_latin = true;
201               
202               
203        // Whether to convert all remaining characters, not comprised in the ASCII character table, to their relative numeric representation of HTML entity. For example, the phrase "This is Chinese: 汉语." is outputted as "This is Chinese: &#27721;&#35821;."
204                // config.entities_processNumerical = false;
205               
206               
207        // List of additional plugins to be loaded. This is a tool setting which makes it easier to add new plugins, whithout having to touch and possibly breaking the CKEDITOR.config.plugins setting.
208                // config.extraPlugins = 'myplugin,anotherplugin';
209               
210               
211        // The location of an external file browser, that should be launched when "Browse Server" button is pressed. If configured, the "Browse Server" button will appear in Link, Image and Flash dialogs.
212                // config.filebrowserBrowseUrl = '';
213                // config.filebrowserBrowseUrl = '/browser/browse.php';
214               
215               
216        // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Flash dialog. If not set, CKEditor will use CKEDITOR.config.filebrowserBrowseUrl.
217                // config.filebrowserFlashBrowseUrl = '';
218                // config.filebrowserFlashBrowseUrl = '/browser/browse.php?type=Flash';
219               
220               
221        // The location of a script that handles file uploads in the Flash dialog. If not set, CKEditor will use CKEDITOR.config.filebrowserUploadUrl.
222                // config.filebrowserFlashUploadUrl = '';
223                // config.filebrowserFlashUploadUrl = '/uploader/upload.php?type=Flash';
224               
225               
226        // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Link tab of Image dialog. If not set, CKEditor will use CKEDITOR.config.filebrowserBrowseUrl.
227                // config.filebrowserImageBrowseLinkUrl = '';
228                // config.filebrowserImageBrowseLinkUrl = '/browser/browse.php';
229               
230               
231        // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Image dialog. If not set, CKEditor will use CKEDITOR.config.filebrowserBrowseUrl.
232                // config.filebrowserImageBrowseUrl = '';
233                // config.filebrowserImageBrowseUrl = '/browser/browse.php?type=Images';
234               
235               
236        // The location of a script that handles file uploads in the Image dialog. If not set, CKEditor will use CKEDITOR.config.filebrowserUploadUrl.
237                // config.filebrowserImageUploadUrl = '';
238                // config.filebrowserImageUploadUrl = '/uploader/upload.php?type=Images';
239               
240               
241        // The location of a script that handles file uploads. If set, the "Upload" tab will appear in "Link", "Image" and "Flash" dialogs.
242                // config.filebrowserUploadUrl = '';
243                // config.filebrowserUploadUrl = '/uploader/upload.php';
244               
245               
246        // Defines the style to be used to highlight results with the find dialog.
247                /*
248                config.find_highlight = {
249                        element : 'span',
250                        styles : {
251                                'background-color' : '#ff0',
252                                'color' : '#00f'
253                        }
254                };
255                */
256               
257               
258        // The text to be displayed in the Font combo is none of the available values matches the current cursor position or text selection.
259                // config.font_defaultLabel = 'Arial';
260               
261               
262        // The list of fonts names to be displayed in the Font combo in the toolbar. Entries are separated by semi-colons (;), while it's possible to have more than one font for each entry, in the HTML way (separated by comma). A display name may be optionally defined by prefixing the entries with the name and the slash character. For example, "Arial/Arial, Helvetica, sans-serif" will be displayed as "Arial" in the list, but will be outputted as "Arial, Helvetica, sans-serif".
263                /*
264                config.font_names =
265                        'Arial/Arial, Helvetica, sans-serif;' +
266                        'Times New Roman/Times New Roman, Times, serif;' +
267                        'Verdana';
268                */
269               
270               
271        // The style definition to be used to apply the font in the text.
272                /*
273                config.font_style = {
274                        element : 'span',
275                        styles : {
276                                'font-family' : '#(family)'
277                        },
278                        overrides       : [
279                                {
280                                        element : 'font',
281                                        attributes : {
282                                                'face' : null
283                                        }
284                                }
285                        ]
286                };
287                */
288               
289               
290        // The text to be displayed in the Font Size combo is none of the available values matches the current cursor position or text selection.
291                // config.fontSize_defaultLabel = '12px';
292               
293               
294        // The list of fonts size to be displayed in the Font Size combo in the toolbar. Entries are separated by semi-colons (;). Any kind of "CSS like" size can be used, like "12px", "2.3em", "130%", "larger" or "x-small". A display name may be optionally defined by prefixing the entries with the name and the slash character. For example, "Bigger Font/14px" will be displayed as "Bigger Font" in the list, but will be outputted as "14px".
295                // config.fontSize_sizes = '16/16px;24/24px;48/48px;';
296                // config.fontSize_sizes = '12px;2.3em;130%;larger;x-small';
297                // config.fontSize_sizes = '12 Pixels/12px;Big/2.3em;30 Percent More/130%;Bigger/larger;Very Small/x-small';
298                // config.fontSize_sizes = '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px'
299               
300               
301        // The style definition to be used to apply the font size in the text.
302                /*
303                config.fontSize_style = {
304                        element : 'span',
305                        styles : {
306                                'font-size' : '#(size)'
307                        },
308                        overrides       : [
309                                {
310                                        element : 'font',
311                                        attributes : {
312                                                'size' : null
313                                        }
314                                }
315                        ]
316                };
317                */
318               
319               
320        // Force the respect of CKEDITOR.config.enterMode  as line break regardless of the context, E.g. If CKEDITOR.config.enterMode  is set to CKEDITOR.ENTER_P, press enter key inside a 'div' will create a new paragraph with 'p' instead of 'div'.
321        // Not recommended.
322        // config.forceEnterMode = false;
323        // config.forceEnterMode = true;
324               
325               
326        // Whether to force all pasting operations to insert on plain text into the editor, loosing any formatting information possibly available in the source text.
327                // config.forcePasteAsPlainText = false;
328               
329               
330        // Whether to force using "&" instead of "&amp;" in elements attributes values. It's not recommended to change this setting for compliance with the W3C XHTML 1.0 standards (C.12, XHTML 1.0).
331                // config.forceSimpleAmpersand = false;
332               
333               
334        // The style definition to be used to apply the "Address" format.
335                /*
336                config.format_address = {
337                        element : 'address',
338                        attributes : {
339                                class : 'styledAddress'
340                        }
341                };
342                */
343               
344               
345        // The style definition to be used to apply the "Normal (DIV)" format.
346                /*
347                config.format_div = {
348                        element : 'div',
349                        attributes : {
350                                class : 'normalDiv'
351                        }
352                };
353                */
354               
355               
356        // The style definition to be used to apply the "Heading 1" format.
357                /*
358                config.format_h1 = {
359                        element : 'h1',
360                        attributes : {
361                                class : 'contentTitle1'
362                        }
363                };
364                */
365               
366               
367        // The style definition to be used to apply the "Heading 2" format.
368                /*
369                config.format_h2 = {
370                        element : 'h2',
371                        attributes : {
372                                class : 'contentTitle2'
373                        }
374                };
375                */
376               
377               
378        // The style definition to be used to apply the "Heading 3" format.
379                /*
380                config.format_h3 = {
381                        element : 'h3',
382                        attributes : {
383                                class : 'contentTitle3'
384                        }
385                };
386                */
387               
388               
389        // The style definition to be used to apply the "Heading 4" format.
390                /*
391                config.format_h4 = {
392                        element : 'h4',
393                        attributes : {
394                                class : 'contentTitle4'
395                        }
396                };
397                */
398               
399               
400        // The style definition to be used to apply the "Heading 5" format.
401                /*
402                config.format_h5 = {
403                        element : 'h5',
404                        attributes : {
405                                class : 'contentTitle5'
406                        }
407                };
408                */
409               
410               
411        // The style definition to be used to apply the "Heading 6" format.
412                /*
413                config.format_h6 = {
414                        element : 'h6',
415                        attributes : {
416                                class : 'contentTitle6'
417                        }
418                };
419                */
420               
421               
422        // The style definition to be used to apply the "Normal" format.
423                /*
424                config.format_p = {
425                        element : 'p',
426                        attributes : {
427                                class : 'normalPara'
428                        }
429                };
430                */
431               
432               
433        // The style definition to be used to apply the "Formatted" format.
434                /*
435                config.format_pre = {
436                        element : 'pre',
437                        attributes : {
438                                class : 'code'
439                        }
440                };
441                */
442               
443               
444        // A list of semi colon separated style names (by default tags) representing the style definition for each entry to be displayed in the Format combo in the toolbar. Each entry must have its relative definition configuration in a setting named "format_(tagName)". For example, the "p" entry has its definition taken from config.format_p.
445                // config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ;
446               
447               
448        // Indicates whether the contents to be edited are being inputted as a full HTML page. A full page includes the <html>, <head> and <body> tags. The final output will also reflect this setting, including the <body> contents only if this setting is disabled.
449                // config.fullPage = false;
450               
451               
452        // The height of editing area( content ), in relative or absolute, e.g. 30px, 5em. Note: Percentage unit is not supported yet. e.g. 30%.
453                // config.height = '200px';
454               
455               
456        // Whether escape HTML when editor update original input element.
457                // config.htmlEncodeOutput = false;
458                // config.htmlEncodeOutput = true;
459               
460               
461        // Whether the editor must output an empty value ("") if it's contents is made by an empty paragraph only.
462                // config.ignoreEmptyParagraph = true;
463               
464               
465        // Padding text to set off the image in preview area.
466                // config.image_previewText = 'Lorem ipsum...';
467                // config.image_previewText = CKEDITOR.tools.repeat( '___ ', 100 );
468               
469               
470        // Whether to remove links when emptying the link URL field in the image dialog.
471                // config.image_removeLinkByEmptyURL = true;
472               
473               
474        // A list associating keystrokes to editor commands. Each element in the list is an array where the first item is the keystroke, and the second is the name of the command to be executed.
475                /*
476                config.keystrokes =
477                [
478                        [ CKEDITOR.ALT + 121, 'toolbarFocus' ],                                                         //ALT+F10
479                        [ CKEDITOR.ALT + 122, 'elementsPathFocus' ],                                    //ALT+F11
480
481                        [ CKEDITOR.SHIFT + 121, 'contextMenu' ],                                                        //SHIFT+F10
482
483                        [ CKEDITOR.CTRL + 90, 'undo' ],                                                                                 //CTRL+Z
484                        [ CKEDITOR.CTRL + 89, 'redo' ],                                                                                 //CTRL+Y
485                        [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90, 'redo' ],                        //CTRL+SHIFT+Z
486
487                        [ CKEDITOR.CTRL + 76, 'link' ],                                                                                 //CTRL+L
488
489                        [ CKEDITOR.CTRL + 66, 'bold' ],                                                                                 //CTRL+B
490                        [ CKEDITOR.CTRL + 73, 'italic' ],                                                                                       //CTRL+I
491                        [ CKEDITOR.CTRL + 85, 'underline' ],                                                                    //CTRL+U
492
493                        [ CKEDITOR.ALT + 109, 'toolbarCollapse' ]                                                       //CTRL + '-'
494                ];
495                */
496               
497               
498        // The user interface language localization to use. If empty, the editor automatically localize the editor to the user language, if supported, otherwise the CKEDITOR.config.defaultLanguage language is used.
499                // config.language = 'en';
500                config.language = 'lt';
501               
502               
503        // A comma separated list of items group names to be displayed in the context menu. The items order will reflect the order in this list if no priority has been definted in the groups.
504                // config.menu_groups = 'clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea'
505                config.menu_groups = 'clipboard' 
506               
507               
508        // The amount of time, in milliseconds, the editor waits before showing submenu options when moving the mouse over options that contains submenus, like the "Cell Properties" entry for tables.
509                // config.menu_subMenuDelay = 400;
510               
511               
512        // The HTML to load in the editor when the "new page" command is executed.
513                // config.newpage_html = '';
514               
515               
516        // The file that provides the MS Word cleanup function for pasting operations. Note: This is a global configuration shared by all editor instances present in the page.
517        // Load from 'pastefromword' plugin 'filter' sub folder (custom.js file).
518                // config.pasteFromWordCleanupFile = 'default';
519                // config.pasteFromWordCleanupFile = 'custom';
520               
521               
522        // Whether to transform MS Word outline numbered headings into lists.
523                // config.pasteFromWordNumberedHeadingToList = false;
524                // config.pasteFromWordNumberedHeadingToList = true;
525               
526               
527        // Whether to prompt the user about the clean up of content being pasted from MS Word.
528                // config.pasteFromWordPromptCleanup = undefined;
529                // config.pasteFromWordPromptCleanup = true;
530               
531               
532        // Whether to ignore all font related formatting styles, including:
533    // * font size;
534    // * font family;
535    // * font foreground/background color.
536                // config.pasteFromWordRemoveFontStyles = true;
537                // config.pasteFromWordRemoveFontStyles = false;
538               
539               
540        // Whether the "Ignore font face definitions" checkbox is enabled by default in the Paste from Word dialog.
541                // config.pasteFromWordIgnoreFontFace = true;
542               
543               
544        // Whether to remove element styles that can't be managed with the editor. Note that this doesn't handle the font specific styles, which depends on the CKEDITOR.config.pasteFromWordRemoveFontStyles  setting instead.
545                // config.pasteFromWordRemoveStyles = true;
546                // config.pasteFromWordRemoveStyles = false;
547               
548               
549        // <static> {String}  CKEDITOR.config.plugins
550        // Comma separated list of plugins to load and initialize for an editor instance. This should be rarely changed, using instead the CKEDITOR.config.extraPlugins and CKEDITOR.config.removePlugins for customizations.
551               
552               
553        // List of regular expressions to be executed over the input HTML, indicating code that must stay untouched.
554                // config.protectedSource.push( /<\?[\s\S]*?\?>/g );                                                                            // PHP Code
555                // config.protectedSource.push( /<%[\s\S]*?%>/g );                                                                              // ASP Code
556                // config.protectedSource.push( /(]+>[\s|\S]*?<\/asp:[^\>]+>)|(]+\/>)/gi );     // ASP.Net Code
557                // config.protectedSource = []
558               
559        // A comma separated list of elements attributes to be removed when executing the "remove format" command.
560                // config.removeFormatAttributes = 'class,style,lang,width,height,align,hspace,valign';
561               
562               
563        // A comma separated list of elements to be removed when executing the "remove " format" command. Note that only inline elements are allowed.
564                // config.removeFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';
565               
566               
567        // List of plugins that must not be loaded. This is a tool setting which makes it easier to avoid loading plugins definied in the CKEDITOR.config.plugins setting, whithout having to touch it and potentially breaking it.
568                // config.removePlugins = 'elementspath,save,font';
569                // config.removePlugins = '';
570               
571               
572        // The directions where resizing is enabled. It can be 'both', 'vertical' or 'horizontal'
573                // config.resize_dir = 'both';
574                // config.resize_dir = 'vertical';
575               
576               
577        // Whether to enable the resizing feature. If disabed the resize handler will not be visible.
578                // config.resize_enabled = true;
579                config.resize_enabled = false;
580               
581               
582        // The maximum editor height, in pixels, when resizing it with the resize handle.
583                // config.resize_maxHeight = 3000;
584               
585               
586        // The maximum editor width, in pixels, when resizing it with the resize handle.
587                // config.resize_maxWidth = 3000;
588               
589               
590        // The minimum editor height, in pixels, when resizing it with the resize handle.
591                // config.resize_minHeight = 250;
592               
593               
594        // The minimum editor width, in pixels, when resizing it with the resize handle.
595                // config.resize_minWidth = 750;
596               
597               
598        // If enabled (true), turns on SCAYT automatically after loading the editor.
599                // config.scayt_autoStartup = true;
600                // config.scayt_autoStartup = false;
601               
602               
603        // Customizes the display of SCAYT context menu commands ("Add Word", "Ignore" and "Ignore All"). It must be a string with one or more of the following words separated by a pipe ("|"):
604        // "off": disables all options.
605    // "all": enables all options.
606    // "ignore": enables the "Ignore" option.
607    // "ignoreall": enables the "Ignore All" option.
608    // "add": enables the "Add Word" option.
609                // config.scayt_contextCommands = 'all';
610        // Show only "Add Word" and "Ignore All" in the context menu.
611                // config.scayt_contextCommands = 'add|ignoreall';
612               
613               
614        // Define order of placing of SCAYT context menu items by groups. It must be a string with one or more of the following words separated by a pipe ("|"):
615        //              * 'suggest' - main suggestion word list,
616    //          * 'moresuggest' - more suggestions word list,
617    //          * 'control' - SCAYT commands, such as 'Ignore' and 'Add Word'
618                // config.scayt_contextMenuItemsOrder = 'suggest|moresuggest|control';
619                // config.scayt_contextMenuItemsOrder = 'moresuggest|control|suggest';
620               
621               
622        // Makes it possible to place the SCAYT context menu items above others.
623                // config.scayt_contextMenuOntop = false;
624                // config.scayt_contextMenuOntop = true;
625               
626               
627        // Links SCAYT to custom dictionaries. It's a string containing dictionary ids separared by commas (","). Available only for licensed version. Further details at http://wiki.spellchecker.net/doku.php?id=custom_dictionary_support .
628                // config.scayt_customDictionaryIds = '';
629                // config.scayt_customDictionaryIds = '3021,3456,3478"';
630               
631               
632        // Sets the customer ID for SCAYT. Required for migration from free version with banner to paid version.
633                // config.scayt_customerid  = '';
634        // Load SCAYT using my customer ID.
635                // config.scayt_customerid  = 'your-encrypted-customer-id';
636               
637               
638        // Defines the number of SCAYT suggestions to show in the main context menu. The possible values are:
639        //              * 0 (zero): All suggestions are displayed in the main context menu.
640    //          * Positive number: The maximum number of suggestions to shown in context menu. Other entries will be shown in "More Suggestions" sub-menu.
641    //          * Negative number: No suggestions are shown in the main context menu. All entries will be listed in the "Suggestions" sub-menu.
642                // config.scayt_maxSuggestions = 5;
643        // Display only three suggestions in the main context menu.
644                // config.scayt_maxSuggestions = 3;
645        // Do not show the suggestions directly.
646                // config.scayt_maxSuggestions = -1;
647               
648               
649        // Enables/disables the "More Suggestions" sub-menu in the context menu. The possible values are "on" or "off".
650                // config.scayt_moreSuggestions = 'on';
651        // Disables the "More Suggestions" sub-menu.
652                // config.scayt_moreSuggestions = 'off';
653               
654               
655        // Sets the default spellchecking language for SCAYT.
656                // config.scayt_sLang = 'en_US';
657        // Sets SCAYT to German.
658                // config.scayt_sLang = 'de_DE';
659               
660               
661        // Set the URL to SCAYT core. Required to switch to licensed version of SCAYT application. Further details at http://wiki.spellchecker.net/doku.php?id=3rd:wysiwyg:fckeditor:wscckf3l .
662                // config.scayt_srcUrl = "";
663                // config.scayt_srcUrl = "http://my-host/spellcheck/lf/scayt/scayt.js";
664               
665               
666        // Sets the visibility of the SCAYT tabs in the settings dialog and toolbar button. The value must contain a "1" (enabled) or "0" (disabled) number for each of the following entries, in this precise order, separated by a comma (","): "Options", "Languages" and "Dictionary".
667                //config.scayt_uiTabs = '1,1,1';
668        // Hide the "Languages" tab.
669                //config.scayt_uiTabs = '1,0,1';
670               
671               
672        // Makes it possible to activate a custom dictionary on SCAYT. The user dictionary name must be used. Available only for licensed version.
673                // config.scayt_userDictionaryName = '';
674                // config.scayt_userDictionaryName = 'MyDictionary';
675               
676               
677        // Just like the CKEDITOR.config.enterMode setting, it defines the behavior for the SHIFT+ENTER key. The allowed values are the following constants, and their relative behavior:
678    //  * CKEDITOR.ENTER_P (1): new <p> paragraphs are created;
679    //  * CKEDITOR.ENTER_BR (2): lines are broken with <br> elements;
680    //  * CKEDITOR.ENTER_DIV (3): new <div> blocks are created.
681                config.shiftEnterMode = CKEDITOR.ENTER_DIV;
682               
683               
684        // The skin to load. It may be the name of the skin folder inside the editor installation path, or the name and the path separated by a comma.
685                // config.skin = 'default';
686                // config.skin = 'myskin,/customstuff/myskin/';
687                config.skin = 'v2';
688               
689               
690        // The description to be used for each of the smileys defined in the CKEDITOR.config.smiley_images setting. Each entry in this array list must match its relative pair in the CKEDITOR.config.smiley_images setting.
691                /*
692                config.smiley_descriptions = [
693                        ':)', ':(', ';)', ':D', ':/', ':P',
694                        '', '', '', '', '', '',
695                        '', ';(', '', '', '', '',
696                        '', ':kiss', '' ];
697                */
698               
699               
700        // The file names for the smileys to be displayed. These files must be contained inside the URL path defined with the CKEDITOR.config.smiley_path setting.
701                /*
702                config.smiley_images = [
703                        'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',
704                        'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',
705                        'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif',
706                        'broken_heart.gif','kiss.gif','envelope.gif'];
707                */
708               
709               
710        // The base path used to build the URL for the smiley images. It must end with a slash.
711                // config.smiley_path = 'http://www.example.com/images/smileys/';
712                // config.smiley_path = '/images/smileys/';
713                // config.smiley_path += 'plugins/smiley/images/'
714               
715               
716        // Sets whether the editor should have the focus when the page loads.
717                // config.startupFocus = false;
718               
719               
720        // The mode to load at the editor startup. It depends on the plugins loaded. By default, the "wysiwyg" and "source" modes are available.
721                // config.startupMode = 'wysiwyg';
722               
723               
724        // Whether to automaticaly enable the "show block" command when the editor loads.
725                // config.startupOutlineBlocks = false;
726               
727               
728        // The "styles definition set" to load into the styles combo. The styles may be defined in the page containing the editor, or can be loaded on demand from an external file when opening the styles combo for the fist time. In the second case, if this setting contains only a name, the styles definition file will be loaded from the "styles" folder inside the stylescombo plugin folder. Otherwise, this setting has the "name:url" syntax, making it possible to set the URL from which loading the styles file.
729                // config.stylesCombo_stylesSet = 'mystyles'; // mystyles.js
730                // config.stylesCombo_stylesSet = 'default'; // mystyles.js
731               
732               
733        // The editor tabindex value.
734                // config.tabIndex = 0;
735               
736               
737        // Intructs the editor to add a number of spaces (&nbsp;) to the text when hitting the TAB key. If set to zero, the TAB key will be used to move the cursor focus to the next element in the page, out of the editor focus.
738                // config.tabSpaces = 0;
739                config.tabSpaces = 4;
740               
741               
742        // The templates definition set to use. It accepts a list of names separated by comma. It must match definitions loaded with the templates_files setting.
743                // config.templates = 'my_templates';
744                // config.templates = 'default';
745               
746               
747        // The list of templates definition files to load.
748                /*
749                config.templates_files = [
750                                '/editor_templates/site_default.js',
751                                'http://www.example.com/user_templates.js
752                        ];
753                */
754                // config.templates_files = [ 'plugins/templates/templates/default.js' ]
755               
756               
757        // Whether the "Replace actual contents" checkbox is checked by default in the Templates dialog.
758                // config.templates_replaceContent = true;
759               
760               
761        // The theme to be used to build the UI.
762                // config.theme = 'default';
763               
764               
765        // The toolbox (alias toolbar) definition. It is a toolbar name or an array of toolbars (strips), each one being also an array, containing a list of UI items.
766                // config.toolbar = 'Full'
767                config.toolbar = [
768                        ['Save'],
769                ['Cut','Copy','Paste','PasteText','PasteFromWord'],
770                        ['Undo','Redo', 'Find','Replace','SelectAll','RemoveFormat'],
771                        ['Link','Unlink','Anchor'],
772                        ['Table','Smiley'],
773                        ['TextColor','BGColor'],
774                        ['Maximize'],
775                        '/',
776                        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
777                        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
778                        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
779                        '/',
780                        ['Styles','Format','Font','FontSize']
781                ];
782               
783        // The toolbar definition. It is an array of toolbars (strips), each one being also an array, containing a list of UI items. Note that this setting is composed by "toolbar_" added by the toolbar name, which in this case is called "Basic". This second part of the setting name can be anything. You must use this name in the CKEDITOR.config.toolbar setting, so you instruct the editor which toolbar_(name) setting to you.
784                /*
785                config.toolbar_Basic = [
786                        [ 'Source', '-', 'Bold', 'Italic' ]
787                ];
788                */
789               
790               
791        // This is the default toolbar definition used by the editor. It contains all editor features.
792                /*
793                config.toolbar_Full =
794                [
795                        ['Source','-','Save','NewPage','Preview','-','Templates'],
796                        ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
797                        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
798                        ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
799                        '/',
800                        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
801                        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
802                        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
803                        ['Link','Unlink','Anchor'],
804                        ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
805                        '/',
806                        ['Styles','Format','Font','FontSize'],
807                        ['TextColor','BGColor'],
808                        ['Maximize', 'ShowBlocks','-','About']
809                ];
810                */
811               
812               
813        // Whether the toolbar can be collapsed by the user. If disabled, the collapser button will not be displayed.
814                // config.toolbarCanCollapse = true;
815               
816               
817        // The "theme space" to which rendering the toolbar. For the default theme, the recommended options are "top" and "bottom".
818                // config.toolbarLocation = 'top';
819               
820               
821        // Whether the toolbar must start expanded when the editor is loaded.
822                // config.toolbarStartupExpanded = true;
823               
824               
825        // The number of undo steps to be saved. The higher this setting value the more memory is used for it.
826                // config.undoStackSize = 20;
827               
828               
829        // The editor width in CSS size format or pixel integer.
830                // config.width = 850;
831                // config.width = '75%';
832                // config.width = '';
833       
834};
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy