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".
|
---|
31 | FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../_samples/html/assets/sample14.styles.css' ;
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * Core styles.
|
---|
35 | */
|
---|
36 | FCKConfig.CoreStyles.Bold = { Element : 'span', Attributes : { 'class' : 'Bold' } } ;
|
---|
37 | FCKConfig.CoreStyles.Italic = { Element : 'span', Attributes : { 'class' : 'Italic' } } ;
|
---|
38 | FCKConfig.CoreStyles.Underline = { Element : 'span', Attributes : { 'class' : 'Underline' } } ;
|
---|
39 | FCKConfig.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}.
|
---|
47 | FCKConfig.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).
|
---|
55 | FCKConfig.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 | */
|
---|
65 | FCKConfig.FontSizes = 'FontSmaller/Smaller;FontLarger/Larger;FontSmall/8pt;FontBig/14pt;FontDouble/Double Size' ;
|
---|
66 | FCKConfig.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 | */
|
---|
76 | FCKConfig.EnableMoreFontColors = false ;
|
---|
77 | FCKConfig.FontColors = 'ff9900/FontColor1,0066cc/FontColor2,ff0000/FontColor3' ;
|
---|
78 | FCKConfig.CoreStyles.Color =
|
---|
79 | {
|
---|
80 | Element : 'span',
|
---|
81 | Attributes : { 'class' : '#("Color")' },
|
---|
82 | Overrides : [ { Element : 'span', Attributes : { 'class' : /^FontColor(?:1|2|3)$/ } } ]
|
---|
83 | } ;
|
---|
84 |
|
---|
85 | FCKConfig.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 | */
|
---|
95 | FCKConfig.IndentClasses = [ 'Indent1', 'Indent2', 'Indent3' ] ;
|
---|
96 |
|
---|
97 | /**
|
---|
98 | * Paragraph justification.
|
---|
99 | */
|
---|
100 | FCKConfig.JustifyClasses = [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ] ;
|
---|
101 |
|
---|
102 | /**
|
---|
103 | * Styles combo.
|
---|
104 | */
|
---|
105 | FCKConfig.StylesXmlPath = '' ;
|
---|
106 | FCKConfig.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 | } ;
|
---|