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

Revision 1575, 2.5 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/**
28 * Core styles.
29 */
30FCKConfig.CoreStyles.Bold                       = { Element : 'b' } ;
31FCKConfig.CoreStyles.Italic                     = { Element : 'i' } ;
32FCKConfig.CoreStyles.Underline          = { Element : 'u' } ;
33FCKConfig.CoreStyles.StrikeThrough      = { Element : 'strike' } ;
34
35/**
36 * Font face
37 */
38// Define the way font elements will be applied to the document. The "span"
39// element will be used. When a font is selected, the font name defined in the
40// above list is passed to this definition with the name "Font", being it
41// injected in the "class" attribute.
42// We must also instruct the editor to replace span elements that are used to
43// set the font (Overrides).
44FCKConfig.CoreStyles.FontFace =
45        {
46                Element         : 'font',
47                Attributes      : { 'face' : '#("Font")' }
48        } ;
49
50/**
51 * Font sizes.
52 */
53FCKConfig.FontSizes             = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
54FCKConfig.CoreStyles.Size =
55        {
56                Element         : 'font',
57                Attributes      : { 'size' : '#("Size")' }
58        } ;
59
60/**
61 * Font colors.
62 */
63FCKConfig.EnableMoreFontColors = true ;
64FCKConfig.CoreStyles.Color =
65        {
66                Element         : 'font',
67                Attributes      : { 'color' : '#("Color")' }
68        } ;
69
70FCKConfig.CoreStyles.BackColor =
71        {
72                Element         : 'font',
73                Styles          : { 'background-color' : '#("Color","color")' }
74        } ;
75
76/**
77 * Styles combo.
78 */
79FCKConfig.StylesXmlPath = '' ;
80FCKConfig.CustomStyles =
81        {
82                'Computer Code' : { Element : 'code' },
83                'Keyboard Phrase' : { Element : 'kbd' },
84                'Sample Text' : { Element : 'samp' },
85                'Variable' : { Element : 'var' },
86
87                'Deleted Text' : { Element : 'del' },
88                'Inserted Text' : { Element : 'ins' },
89
90                'Cited Work' : { Element : 'cite' },
91                'Inline Quotation' : { Element : 'q' }
92        } ;
Note: See TracBrowser for help on using the repository browser.