source: sandbox/filemanager/tp/fckeditor/_samples/html/assets/sample14.config.js @ 1575

Revision 1575, 4.0 KB checked in by amuller, 14 years ago (diff)

Ticket #597 - Implentação, melhorias do modulo gerenciador de arquivos

  • Property svn:executable set to *
Line 
1/*
2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3 * Copyright (C) 2003-2009 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 * Configuration settings used by the XHTML 1.1 sample page (sample14.html).
22 */
23
24// Our intention is force all formatting features to use CSS classes or
25// semantic aware elements.
26
27// Load our custom CSS files for this sample.
28// We are using "BasePath" just for this sample convenience. In normal
29// situations it would be just pointed to the file directly,
30// like "/css/myfile.css".
31FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../_samples/html/assets/sample14.styles.css' ;
32
33/**
34 * Core styles.
35 */
36FCKConfig.CoreStyles.Bold                       = { Element : 'span', Attributes : { 'class' : 'Bold' } } ;
37FCKConfig.CoreStyles.Italic                     = { Element : 'span', Attributes : { 'class' : 'Italic' } } ;
38FCKConfig.CoreStyles.Underline          = { Element : 'span', Attributes : { 'class' : 'Underline' } } ;
39FCKConfig.CoreStyles.StrikeThrough      = { Element : 'span', Attributes : { 'class' : 'StrikeThrough' } } ;
40
41/**
42 * Font face
43 */
44// List of fonts available in the toolbar combo. Each font definition is
45// separated by a semi-colon (;). We are using class names here, so each font
46// is defined by {Class Name}/{Combo Label}.
47FCKConfig.FontNames = 'FontComic/Comic Sans MS;FontCourier/Courier New;FontTimes/Times New Roman' ;
48
49// Define the way font elements will be applied to the document. The "span"
50// element will be used. When a font is selected, the font name defined in the
51// above list is passed to this definition with the name "Font", being it
52// injected in the "class" attribute.
53// We must also instruct the editor to replace span elements that are used to
54// set the font (Overrides).
55FCKConfig.CoreStyles.FontFace =
56        {
57                Element         : 'span',
58                Attributes      : { 'class' : '#("Font")' },
59                Overrides       : [ { Element : 'span', Attributes : { 'class' : /^Font(?:Comic|Courier|Times)$/ } } ]
60        } ;
61
62/**
63 * Font sizes.
64 */
65FCKConfig.FontSizes             = 'FontSmaller/Smaller;FontLarger/Larger;FontSmall/8pt;FontBig/14pt;FontDouble/Double Size' ;
66FCKConfig.CoreStyles.Size =
67        {
68                Element         : 'span',
69                Attributes      : { 'class' : '#("Size")' },
70                Overrides       : [ { Element : 'span', Attributes : { 'class' : /^Font(?:Smaller|Larger|Small|Big|Double)$/ } } ]
71        } ;
72
73/**
74 * Font colors.
75 */
76FCKConfig.EnableMoreFontColors = false ;
77FCKConfig.FontColors = 'ff9900/FontColor1,0066cc/FontColor2,ff0000/FontColor3' ;
78FCKConfig.CoreStyles.Color =
79        {
80                Element         : 'span',
81                Attributes      : { 'class' : '#("Color")' },
82                Overrides       : [ { Element : 'span', Attributes : { 'class' : /^FontColor(?:1|2|3)$/ } } ]
83        } ;
84
85FCKConfig.CoreStyles.BackColor =
86        {
87                Element         : 'span',
88                Attributes      : { 'class' : '#("Color")BG' },
89                Overrides       : [ { Element : 'span', Attributes : { 'class' : /^FontColor(?:1|2|3)BG$/ } } ]
90        } ;
91
92/**
93 * Indentation.
94 */
95FCKConfig.IndentClasses = [ 'Indent1', 'Indent2', 'Indent3' ] ;
96
97/**
98 * Paragraph justification.
99 */
100FCKConfig.JustifyClasses = [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ] ;
101
102/**
103 * Styles combo.
104 */
105FCKConfig.StylesXmlPath = '' ;
106FCKConfig.CustomStyles =
107        {
108                'Strong Emphasis' : { Element : 'strong' },
109                'Emphasis' : { Element : 'em' },
110
111                'Computer Code' : { Element : 'code' },
112                'Keyboard Phrase' : { Element : 'kbd' },
113                'Sample Text' : { Element : 'samp' },
114                'Variable' : { Element : 'var' },
115
116                'Deleted Text' : { Element : 'del' },
117                'Inserted Text' : { Element : 'ins' },
118
119                'Cited Work' : { Element : 'cite' },
120                'Inline Quotation' : { Element : 'q' }
121        } ;
Note: See TracBrowser for help on using the repository browser.