| @@ 37-88 (lines=52) @@ | ||
| 34 | * Get the toolbar configuration when CKEditor is maximized |
|
| 35 | * @return array |
|
| 36 | */ |
|
| 37 | protected function getMaximizedToolbar() |
|
| 38 | { |
|
| 39 | return [ |
|
| 40 | ['NewPage', 'Templates', '-', 'Preview', 'Print'], |
|
| 41 | ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], |
|
| 42 | ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'], |
|
| 43 | ['Link', 'Unlink', 'Anchor', 'Glossary'], |
|
| 44 | [ |
|
| 45 | 'Image', |
|
| 46 | 'Mapping', |
|
| 47 | 'Video', |
|
| 48 | 'Oembed', |
|
| 49 | 'Youtube', |
|
| 50 | 'Flash', |
|
| 51 | 'Audio', |
|
| 52 | 'leaflet', |
|
| 53 | 'Smiley', |
|
| 54 | 'SpecialChar', |
|
| 55 | 'Asciimath', |
|
| 56 | 'Asciisvg' |
|
| 57 | ], |
|
| 58 | '/', |
|
| 59 | ['Table', '-', 'CreateDiv'], |
|
| 60 | [ |
|
| 61 | 'BulletedList', |
|
| 62 | 'NumberedList', |
|
| 63 | 'HorizontalRule', |
|
| 64 | '-', |
|
| 65 | 'Outdent', |
|
| 66 | 'Indent', |
|
| 67 | 'Blockquote', |
|
| 68 | ], |
|
| 69 | ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], |
|
| 70 | [ |
|
| 71 | 'Bold', |
|
| 72 | 'Italic', |
|
| 73 | 'Underline', |
|
| 74 | 'Strike', |
|
| 75 | '-', |
|
| 76 | 'Subscript', |
|
| 77 | 'Superscript', |
|
| 78 | '-', |
|
| 79 | 'TextColor', |
|
| 80 | 'BGColor', |
|
| 81 | ], |
|
| 82 | [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], |
|
| 83 | ['Styles', 'Format', 'Font', 'FontSize'], |
|
| 84 | ['PageBreak', 'ShowBlocks'], |
|
| 85 | api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
| 86 | ['Toolbarswitch'] |
|
| 87 | ]; |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false |
|
| @@ 40-72 (lines=33) @@ | ||
| 37 | * Get the toolbar configuration when CKEditor is maximized |
|
| 38 | * @return array |
|
| 39 | */ |
|
| 40 | protected function getMaximizedToolbar() |
|
| 41 | { |
|
| 42 | return [ |
|
| 43 | ['Save', 'NewPage', 'Templates', '-', 'Preview', 'Print'], |
|
| 44 | ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], |
|
| 45 | ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'], |
|
| 46 | ['Wikilink', 'Link', 'Unlink', 'Anchor', 'Glossary'], |
|
| 47 | [ |
|
| 48 | 'Image', |
|
| 49 | 'Mapping', |
|
| 50 | 'Video', |
|
| 51 | 'Oembed', |
|
| 52 | 'Youtube', |
|
| 53 | 'Flash', |
|
| 54 | 'Audio', |
|
| 55 | 'leaflet', |
|
| 56 | 'Smiley', |
|
| 57 | 'SpecialChar', |
|
| 58 | 'Asciimath', |
|
| 59 | 'Asciisvg' |
|
| 60 | ], |
|
| 61 | '/', |
|
| 62 | ['Table', '-', 'CreateDiv'], |
|
| 63 | ['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'], |
|
| 64 | ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], |
|
| 65 | ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-', 'TextColor', 'BGColor'], |
|
| 66 | [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], |
|
| 67 | ['Styles', 'Format', 'Font', 'FontSize'], |
|
| 68 | ['PageBreak', 'ShowBlocks'], |
|
| 69 | api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
| 70 | ['Toolbarswitch'] |
|
| 71 | ]; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false |
|
| @@ 34-64 (lines=31) @@ | ||
| 31 | * Get the toolbar configuration when CKEditor is maximized |
|
| 32 | * @return array |
|
| 33 | */ |
|
| 34 | protected function getMaximizedToolbar() |
|
| 35 | { |
|
| 36 | return [ |
|
| 37 | ['NewPage', 'Templates', '-', 'Preview', 'Print'], |
|
| 38 | ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], |
|
| 39 | ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'], |
|
| 40 | ['Wikilink', 'Link', 'Unlink', 'Anchor', 'Glossary'], |
|
| 41 | [ |
|
| 42 | 'Image', |
|
| 43 | 'Mapping', |
|
| 44 | 'Video', |
|
| 45 | 'Oembed', |
|
| 46 | 'Youtube', |
|
| 47 | 'Flash', |
|
| 48 | 'Audio', |
|
| 49 | 'leaflet', |
|
| 50 | 'Smiley', |
|
| 51 | 'SpecialChar' |
|
| 52 | ], |
|
| 53 | '/', |
|
| 54 | ['Table', '-', 'CreateDiv'], |
|
| 55 | ['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'], |
|
| 56 | ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], |
|
| 57 | ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-', 'TextColor', 'BGColor'], |
|
| 58 | [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], |
|
| 59 | ['Styles', 'Format', 'Font', 'FontSize'], |
|
| 60 | ['PageBreak', 'ShowBlocks', 'Source'], |
|
| 61 | api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
| 62 | ['Toolbarswitch'] |
|
| 63 | ]; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false |
|
| @@ 218-250 (lines=33) @@ | ||
| 215 | * Get the toolbar configuration when CKEditor is maximized |
|
| 216 | * @return array |
|
| 217 | */ |
|
| 218 | protected function getMaximizedToolbar() |
|
| 219 | { |
|
| 220 | return [ |
|
| 221 | ['Save', 'NewPage', 'Templates', '-', 'Preview', 'Print'], |
|
| 222 | ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], |
|
| 223 | ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'], |
|
| 224 | ['Link', 'Unlink', 'Anchor', 'Glossary'], |
|
| 225 | [ |
|
| 226 | 'Image', |
|
| 227 | 'Mapping', |
|
| 228 | 'Video', |
|
| 229 | 'Oembed', |
|
| 230 | 'Flash', |
|
| 231 | 'Youtube', |
|
| 232 | 'Audio', |
|
| 233 | 'leaflet', |
|
| 234 | 'Smiley', |
|
| 235 | 'SpecialChar', |
|
| 236 | 'Asciimath', |
|
| 237 | 'Asciisvg' |
|
| 238 | ], |
|
| 239 | '/', |
|
| 240 | ['Table', '-', 'CreateDiv'], |
|
| 241 | ['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'], |
|
| 242 | ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], |
|
| 243 | ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-', 'TextColor', 'BGColor'], |
|
| 244 | [api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], |
|
| 245 | ['Styles', 'Format', 'Font', 'FontSize'], |
|
| 246 | ['PageBreak', 'ShowBlocks', 'Source'], |
|
| 247 | api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
| 248 | ['Toolbarswitch'], |
|
| 249 | ]; |
|
| 250 | } |
|
| 251 | ||
| 252 | } |
|
| 253 | ||