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

Revision 1575, 2.6 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' } ;
33
34/**
35 * Font face
36 */
37// Define the way font elements will be applied to the document. The "span"
38// element will be used. When a font is selected, the font name defined in the
39// above list is passed to this definition with the name "Font", being it
40// injected in the "class" attribute.
41// We must also instruct the editor to replace span elements that are used to
42// set the font (Overrides).
43FCKConfig.CoreStyles.FontFace =
44        {
45                Element         : 'font',
46                Attributes      : { 'face' : '#("Font")' }
47        } ;
48
49/**
50 * Font sizes.
51 * The CSS part of the font sizes isn't used by Flash, it is there to get the
52 * font rendered correctly in FCKeditor.
53 */
54FCKConfig.FontSizes             = '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' ;
55FCKConfig.CoreStyles.Size =
56        {
57                Element         : 'font',
58                Attributes      : { 'size' : '#("Size")' },
59                Styles          : { 'font-size' : '#("Size","fontSize")' }
60        } ;
61
62/**
63 * Font colors.
64 */
65FCKConfig.EnableMoreFontColors = true ;
66FCKConfig.CoreStyles.Color =
67        {
68                Element         : 'font',
69                Attributes      : { 'color' : '#("Color")' }
70        } ;
71/**
72 * Styles combo.
73 */
74FCKConfig.StylesXmlPath = '' ;
75FCKConfig.CustomStyles =
76        {
77        } ;
78
79/**
80 * Toolbar set for Flash HTML editing.
81 */
82FCKConfig.ToolbarSets['Flash'] = [
83        ['Source','-','Bold','Italic','Underline','-','UnorderedList','-','Link','Unlink'],
84        ['FontName','FontSize','-','About']
85] ;
86
87/**
88 * Flash specific formatting settings.
89 */
90FCKConfig.EditorAreaStyles = 'p, ol, ul {margin-top: 0px; margin-bottom: 0px;}' ;
91FCKConfig.FormatSource = false ;
92FCKConfig.FormatOutput = false ;
Note: See TracBrowser for help on using the repository browser.