~ubuntu-branches/ubuntu/trusty/fusionforge/trusty

« back to all changes in this revision

Viewing changes to plugins/fckeditor/www/_samples/html/assets/sample15.config.js

  • Committer: Bazaar Package Importer
  • Author(s): Roland Mas
  • Date: 2011-04-15 14:55:34 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110415145534-mvn1nochufjmw177
Tags: 5.0.3-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 
3
 * Copyright (C) 2003-2008 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
 */
 
30
FCKConfig.CoreStyles.Bold                       = { Element : 'b' } ;
 
31
FCKConfig.CoreStyles.Italic                     = { Element : 'i' } ;
 
32
FCKConfig.CoreStyles.Underline          = { Element : 'u' } ;
 
33
FCKConfig.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).
 
44
FCKConfig.CoreStyles.FontFace =
 
45
        {
 
46
                Element         : 'font',
 
47
                Attributes      : { 'face' : '#("Font")' }
 
48
        } ;
 
49
 
 
50
/**
 
51
 * Font sizes.
 
52
 */
 
53
FCKConfig.FontSizes             = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
 
54
FCKConfig.CoreStyles.Size =
 
55
        {
 
56
                Element         : 'font',
 
57
                Attributes      : { 'size' : '#("Size")' }
 
58
        } ;
 
59
 
 
60
/**
 
61
 * Font colors.
 
62
 */
 
63
FCKConfig.EnableMoreFontColors = true ;
 
64
FCKConfig.CoreStyles.Color =
 
65
        {
 
66
                Element         : 'font',
 
67
                Attributes      : { 'color' : '#("Color")' }
 
68
        } ;
 
69
 
 
70
FCKConfig.CoreStyles.BackColor =
 
71
        {
 
72
                Element         : 'font',
 
73
                Styles          : { 'background-color' : '#("Color","color")' }
 
74
        } ;
 
75
 
 
76
/**
 
77
 * Styles combo.
 
78
 */
 
79
FCKConfig.StylesXmlPath = '' ;
 
80
FCKConfig.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
        } ;