Projet

Général

Profil

Paste
Télécharger (9,17 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / media_ckeditor / modules / media_ckeditor_settings / media_ckeditor_settings.features.ckeditor_profile.inc @ 5d940405

1
<?php
2

    
3
/**
4
 * @file
5
 * media_ckeditor_settings.features.ckeditor_profile.inc
6
 */
7

    
8
/**
9
 * Implements hook_ckeditor_profile_defaults().
10
 */
11
function media_ckeditor_settings_ckeditor_profile_defaults() {
12
  $data = array(
13
    'Advanced' => array(
14
      'name' => 'Advanced',
15
      'settings' => array(
16
        'ss' => 2,
17
        'toolbar' => '[
18
    [\'Source\'],
19
    [\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteFromWord\',\'-\',\'SpellChecker\', \'Scayt\'],
20
    [\'Undo\',\'Redo\',\'Find\',\'Replace\',\'-\',\'SelectAll\'],
21
    [\'Image\',\'Media\',\'Flash\',\'Table\',\'HorizontalRule\',\'Smiley\',\'SpecialChar\'],
22
    [\'Maximize\', \'ShowBlocks\'],
23
    \'/\',
24
    [\'Format\'],
25
    [\'Bold\',\'Italic\',\'Underline\',\'Strike\',\'-\',\'Subscript\',\'Superscript\',\'-\',\'RemoveFormat\'],
26
    [\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\'],
27
    [\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\',\'-\',\'BidiLtr\',\'BidiRtl\'],
28
    [\'Link\',\'Unlink\',\'Anchor\',\'Linkit\']
29
]
30
    ',
31
        'expand' => 't',
32
        'default' => 't',
33
        'show_toggle' => 't',
34
        'uicolor' => 'custom',
35
        'uicolor_user' => '#542002',
36
        'width' => '100%',
37
        'lang' => 'en',
38
        'auto_lang' => 't',
39
        'language_direction' => 'default',
40
        'allowed_content' => 't',
41
        'extraAllowedContent' => 'properties;
42
table[class](*);
43
tbody[class](*);
44
tr[class](*);
45
td[class,colspan](*);
46
img[title,alt,src,data-cke-saved-src](wysiwyg-break,drupal-content);
47
video[width,height,controls,src,controlslist,data-delta,data-fid,data-media-element](*);
48
source[src,type,data-cke-saved-src];
49
audio[controls,src](*);
50
img[*](media-element,file-default,media-wysiwyg-align-right,media-wysiwyg-align-left,media-wysiwyg-align-center);
51
p[class](*);
52
audio[controls,src](*);
53
b[class](*);
54
p[class](default,fanc*,text-align*,Indent*);
55
a[href,hreflang,data-entity-type,data-entity-uuid,title,target,class,tabindex](*);
56
h1[class](*);
57
h2[class](*);
58
h3[class](*);
59
h4[class](*);
60
h5[class](*);
61
h6[class](*);
62
hr[class](*);
63
div[class,aria-labelledby,data-parent,id](*);
64
button[class,aria-controls,aria-expanded,data-target,data-toggle,type,id](*);
65
sub[class](*);
66
sup[class](*);
67
strong[class](*);
68
em[class](*);
69
cite[class](*);
70
footer[class](default);
71
blockquote[class](*);
72
ul[class,type](*);
73
ol[class,start,type](*);
74
span[!class](*);
75
span[!lang](*);
76
li[class](*);',
77
        'enter_mode' => 'p',
78
        'shift_enter_mode' => 'br',
79
        'font_format' => 'p;div;pre;address;h1;h2;h3;h4;h5;h6',
80
        'custom_formatting' => 'f',
81
        'formatting' => array(
82
          'custom_formatting_options' => array(
83
            'indent' => 'indent',
84
            'breakBeforeOpen' => 'breakBeforeOpen',
85
            'breakAfterOpen' => 'breakAfterOpen',
86
            'breakAfterClose' => 'breakAfterClose',
87
            'breakBeforeClose' => 0,
88
            'pre_indent' => 0,
89
          ),
90
        ),
91
        'css_mode' => 'none',
92
        'css_path' => '',
93
        'css_style' => 'theme',
94
        'styles_path' => '',
95
        'filebrowser' => 'none',
96
        'filebrowser_image' => '',
97
        'filebrowser_flash' => '',
98
        'UserFilesPath' => '%b%f/',
99
        'UserFilesAbsolutePath' => '%d%b%f/',
100
        'forcePasteAsPlainText' => 'f',
101
        'html_entities' => 'f',
102
        'scayt_autoStartup' => 'f',
103
        'theme_config_js' => 'f',
104
        'js_conf' => '',
105
        'loadPlugins' => array(
106
          'drupalbreaks' => array(
107
            'name' => 'drupalbreaks',
108
            'desc' => 'Plugin for inserting Drupal teaser and page breaks.',
109
            'path' => '%plugin_dir%drupalbreaks/',
110
            'buttons' => array(
111
              'DrupalBreak' => array(
112
                'label' => 'DrupalBreak',
113
                'icon' => 'images/drupalbreak.png',
114
              ),
115
            ),
116
            'default' => 't',
117
          ),
118
          'media' => array(
119
            'name' => 'media',
120
            'desc' => 'Plugin for embedding files using Media CKEditor',
121
            'path' => '%base_path%profiles/media_dev/modules/contrib/media_ckeditor/js/plugins/media/',
122
            'buttons' => array(
123
              'Media' => array(
124
                'icon' => 'icons/media.png',
125
                'label' => 'Add media',
126
              ),
127
            ),
128
            'default' => 'f',
129
          ),
130
        ),
131
      ),
132
      'input_formats' => array(
133
        'filtered_html' => 'Filtered HTML',
134
      ),
135
    ),
136
    'CKEditor Global Profile' => array(
137
      'name' => 'CKEditor Global Profile',
138
      'settings' => array(
139
        'skin' => 'moono',
140
        'ckeditor_path' => '//cdn.ckeditor.com/4.14.0/full-all',
141
        'ckeditor_local_path' => '',
142
        'ckeditor_plugins_path' => '%m/plugins',
143
        'ckeditor_plugins_local_path' => '',
144
        'ckfinder_path' => '%m/ckfinder',
145
        'ckfinder_local_path' => '',
146
        'ckeditor_aggregate' => 'f',
147
        'toolbar_wizard' => 't',
148
        'loadPlugins' => array(),
149
      ),
150
      'input_formats' => array(),
151
    ),
152
    'Full' => array(
153
      'name' => 'Full',
154
      'settings' => array(
155
        'ss' => 2,
156
        'toolbar' => '[
157
    [\'Source\'],
158
    [\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteFromWord\',\'-\',\'SpellChecker\', \'Scayt\'],
159
    [\'Undo\',\'Redo\',\'Find\',\'Replace\',\'-\',\'SelectAll\'],
160
    [\'Image\',\'Media\',\'Flash\',\'Table\',\'HorizontalRule\',\'Smiley\',\'SpecialChar\',\'Iframe\'],
161
    \'/\',
162
    [\'Bold\',\'Italic\',\'Underline\',\'Strike\',\'-\',\'Subscript\',\'Superscript\',\'-\',\'RemoveFormat\'],
163
    [\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\',\'CreateDiv\'],
164
    [\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\',\'-\',\'BidiLtr\',\'BidiRtl\',\'-\',\'Language\'],
165
    [\'Link\',\'Unlink\',\'Anchor\',\'Linkit\'],
166
    [\'DrupalBreak\'],
167
    \'/\',
168
    [\'Format\',\'Font\',\'FontSize\'],
169
    [\'TextColor\',\'BGColor\'],
170
    [\'Maximize\', \'ShowBlocks\']
171
]
172
    ',
173
        'expand' => 't',
174
        'default' => 't',
175
        'show_toggle' => 't',
176
        'uicolor' => 'default',
177
        'uicolor_user' => 'default',
178
        'width' => '100%',
179
        'lang' => 'en',
180
        'auto_lang' => 't',
181
        'language_direction' => 'default',
182
        'allowed_content' => 'f',
183
        'extraAllowedContent' => 'properties;
184
table[class](*);
185
tbody[class](*);
186
tr[class](*);
187
td[class,colspan](*);
188
img[title,alt,src,data-cke-saved-src](wysiwyg-break,drupal-content);
189
video[width,height,controls,src,controlslist,data-delta,data-fid,data-media-element](*);
190
source[src,type,data-cke-saved-src];
191
audio[controls,src](*);
192
img[*](media-element,file-default,media-wysiwyg-align-right,media-wysiwyg-align-left,media-wysiwyg-align-center);
193
p[class](*);
194
audio[controls,src](*);
195
b[class](*);
196
p[class](default,fanc*,text-align*,Indent*);
197
a[href,hreflang,data-entity-type,data-entity-uuid,title,target,class,tabindex](*);
198
h1[class](*);
199
h2[class](*);
200
h3[class](*);
201
h4[class](*);
202
h5[class](*);
203
h6[class](*);
204
hr[class](*);
205
div[class,aria-labelledby,data-parent,id](*);
206
button[class,aria-controls,aria-expanded,data-target,data-toggle,type,id](*);
207
sub[class](*);
208
sup[class](*);
209
strong[class](*);
210
em[class](*);
211
cite[class](*);
212
footer[class](default);
213
blockquote[class](*);
214
ul[class,type](*);
215
ol[class,start,type](*);
216
span[!class](*);
217
span[!lang](*);
218
li[class](*);',
219
        'enter_mode' => 'p',
220
        'shift_enter_mode' => 'br',
221
        'font_format' => 'p;div;pre;address;h1;h2;h3;h4;h5;h6',
222
        'custom_formatting' => 'f',
223
        'formatting' => array(
224
          'custom_formatting_options' => array(
225
            'indent' => 'indent',
226
            'breakBeforeOpen' => 'breakBeforeOpen',
227
            'breakAfterOpen' => 'breakAfterOpen',
228
            'breakAfterClose' => 'breakAfterClose',
229
            'breakBeforeClose' => 0,
230
            'pre_indent' => 0,
231
          ),
232
        ),
233
        'css_mode' => 'none',
234
        'css_path' => '',
235
        'css_style' => 'theme',
236
        'styles_path' => '',
237
        'filebrowser' => 'none',
238
        'filebrowser_image' => '',
239
        'filebrowser_flash' => '',
240
        'UserFilesPath' => '%b%f/',
241
        'UserFilesAbsolutePath' => '%d%b%f/',
242
        'forcePasteAsPlainText' => 'f',
243
        'html_entities' => 'f',
244
        'scayt_autoStartup' => 'f',
245
        'theme_config_js' => 'f',
246
        'js_conf' => '',
247
        'loadPlugins' => array(
248
          'drupalbreaks' => array(
249
            'name' => 'drupalbreaks',
250
            'desc' => 'Plugin for inserting Drupal teaser and page breaks.',
251
            'path' => '%plugin_dir%drupalbreaks/',
252
            'buttons' => array(
253
              'DrupalBreak' => array(
254
                'label' => 'DrupalBreak',
255
                'icon' => 'images/drupalbreak.png',
256
              ),
257
            ),
258
            'default' => 't',
259
          ),
260
          'media' => array(
261
            'name' => 'media',
262
            'desc' => 'Plugin for embedding files using Media CKEditor',
263
            'path' => '%base_path%profiles/media_dev/modules/contrib/media_ckeditor/js/plugins/media/',
264
            'buttons' => array(
265
              'Media' => array(
266
                'icon' => 'icons/media.png',
267
                'label' => 'Add media',
268
              ),
269
            ),
270
            'default' => 'f',
271
          ),
272
        ),
273
      ),
274
      'input_formats' => array(
275
        'full_html' => 'Full HTML',
276
      ),
277
    ),
278
  );
279
  return $data;
280
}