Project

General

Profile

1
/**
2
 *  @module         ckeditor
3
 *  @version        see info.php of this module
4
 *  @authors        Michael Tenschert, Dietrich Roland Pehlke
5
 *  @copyright      2010-2011 Michael Tenschert, Dietrich Roland Pehlke
6
 *  @license        GNU General Public License
7
 *  @license terms  see info.php of this module
8
 *  @platform       see info.php of this module
9
 *  @requirements   PHP 5.2.x and higher
10
 */
11
 
12
 CKEDITOR.addStylesSet( 'wb',
13
[
14
    /* Block Styles */
15

    
16
    // These styles are defined per editor.css in your template and can be found in "Format".
17
    /*
18
    { name : 'Paragraph'        , element : 'p' },
19
    { name : 'Heading 1'        , element : 'h1' },
20
    { name : 'Heading 2'        , element : 'h2' },
21
    { name : 'Heading 3'        , element : 'h3' },
22
    { name : 'Heading 4'        , element : 'h4' },
23
    { name : 'Heading 5'        , element : 'h5' },
24
    { name : 'Heading 6'        , element : 'h6' },
25
    { name : 'Preformatted Text', element : 'pre' },
26
    { name : 'Address'            , element : 'address' },
27
    */
28

    
29
    { name : 'Blue Title'       , element : 'h3', attributes  : { 'class' : 'marker-blue' } },
30
    { name : 'Red Title'        , element : 'h3', attributes  : { 'class' : 'marker-red' } },
31

    
32
    /* Inline Styles */
33

    
34
    // These are core styles available as toolbar buttons. You may opt enabling
35
    // some of them in the Styles combo, removing them from the toolbar.
36
    /*
37
    { name : 'Strong'           , element : 'strong', overrides : 'b' },
38
    { name : 'Emphasis'         , element : 'em'    , overrides : 'i' },
39
    { name : 'Underline'        , element : 'u' },
40
    { name : 'Strikethrough'    , element : 'strike' },
41
    { name : 'Subscript'        , element : 'sub' },
42
    { name : 'Superscript'      , element : 'sup' },
43
    */
44

    
45
    { name : 'Marker: Yellow'   , element : 'span', attributes : { 'class' : 'Yellow' } },
46
    { name : 'Marker: Green'    , element : 'span', attributes : { 'class' : 'Lime' } },
47

    
48
    { name : 'Big'              , element : 'big' },
49
    { name : 'Small'            , element : 'small' },
50
    { name : 'Typewriter'       , element : 'tt' },
51

    
52
    { name : 'Computer Code'    , element : 'code' },
53
    { name : 'Keyboard Phrase'  , element : 'kbd' },
54
    { name : 'Sample Text'      , element : 'samp' },
55
    { name : 'Variable'         , element : 'var' },
56

    
57
    { name : 'Deleted Text'     , element : 'del' },
58
    { name : 'Inserted Text'    , element : 'ins' },
59

    
60
    { name : 'Cited Work'       , element : 'cite' },
61
    { name : 'Inline Quotation' , element : 'q' },
62

    
63
    { name : 'Language: RTL'    , element : 'span', attributes : { 'dir' : 'rtl' } },
64
    { name : 'Language: LTR'    , element : 'span', attributes : { 'dir' : 'ltr' } },
65

    
66
    /* Object Styles */
67
    //  This styles are only available when you select the defined objects. E.g. when selecting an image 
68
    //  you can control here with the styles dropdown the styling.
69
    {
70
        name : 'Image on Left',
71
        element : 'img',
72
        attributes :
73
        {
74
            'style' : 'padding: 5px; margin-right: 5px',
75
            'border' : '2',
76
            'align' : 'left'
77
        }
78
    },
79

    
80
    {
81
        name : 'Image on Right',
82
        element : 'img',
83
        attributes :
84
        {
85
            'style' : 'padding: 5px; margin-left: 5px',
86
            'border' : '2',
87
            'align' : 'right'
88
        }
89
    }
90

    
91

    
92
]);
(2-2/5)