Révision 6fd71452
Ajouté par Julien Enselme il y a environ 10 ans
drupal7/sites/all/modules/ckeditor/ckeditor.config.js | ||
---|---|---|
23 | 23 |
// side |
24 | 24 |
// (as does Drupal), so just leave this line as is. |
25 | 25 |
config.protectedSource.push(/<\?[\s\S]*?\?>/g); // PHP Code |
26 |
config.protectedSource.push(/<code>[\s\S]*?<\/code>/gi); // Code tags |
|
26 |
|
|
27 |
// [#1762328] Uncomment the line below to protect <code> tags in CKEditor (hide them in wysiwyg mode). |
|
28 |
// config.protectedSource.push(/<code>[\s\S]*?<\/code>/gi); |
|
27 | 29 |
config.extraPlugins = ''; |
28 | 30 |
|
29 | 31 |
/* |
... | ... | |
70 | 72 |
Drupal.settings.cke_toolbar_DrupalAdvanced = [ |
71 | 73 |
['Source'], |
72 | 74 |
['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt'], |
73 |
['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
|
|
75 |
['Undo','Redo','Find','Replace','-','SelectAll'], |
|
74 | 76 |
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], |
75 | 77 |
['Maximize', 'ShowBlocks'], |
76 | 78 |
'/', |
77 | 79 |
['Format'], |
78 |
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], |
|
80 |
['Bold','Italic','Underline','Strike','-','Subscript','Superscript','-','RemoveFormat'],
|
|
79 | 81 |
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], |
80 |
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiRtl','BidiLtr'], |
|
81 |
['Link','Unlink','Anchor','Linkit','LinkToNode','LinkToMenu'], |
|
82 |
['DrupalBreak', 'DrupalPageBreak'] |
|
82 |
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl'], |
|
83 |
['Link','Unlink','Anchor','Linkit','LinkToNode','LinkToMenu'] |
|
83 | 84 |
]; |
84 | 85 |
|
85 |
// Toolbar definiton for all buttons |
|
86 |
// Toolbar definition for all buttons
|
|
86 | 87 |
Drupal.settings.cke_toolbar_DrupalFull = [ |
87 | 88 |
['Source'], |
88 | 89 |
['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt'], |
89 |
['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
|
|
90 |
['Undo','Redo','Find','Replace','-','SelectAll'], |
|
90 | 91 |
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','Iframe'], |
91 | 92 |
'/', |
92 |
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], |
|
93 |
['Bold','Italic','Underline','Strike','-','Subscript','Superscript','-','RemoveFormat'],
|
|
93 | 94 |
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], |
94 |
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiRtl','BidiLtr'],
|
|
95 |
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl','-','Language'],
|
|
95 | 96 |
['Link','Unlink','Anchor','Linkit','LinkToNode', 'LinkToMenu'], |
96 | 97 |
'/', |
97 | 98 |
['Format','Font','FontSize'], |
Formats disponibles : Unified diff
Update CKEditor