|
13 | 13 |
|
14 | 14 | # Non-image file icons, matched from top to bottom |
15 | 15 | fileicons_path = '{0}/file-icons/'.format(getattr(settings, 'CKEDITOR_FILEICONS_PATH', '/static/ckeditor')) |
16 | | -# This allows adding or overriding the default icons used by Gallerific by getting an additional two-tuple list from |
| 16 | +# This allows adding or overriding the default icons used by Gallerific by getting an additional two-tuple list from |
17 | 17 | # the project settings. If it does not exist, it is ignored. If the same file extension exists twice, the settings |
18 | 18 | # file version is used instead of the default. |
19 | 19 | override_icons = getattr(settings, 'CKEDITOR_FILEICONS', []) |
20 | | -ckeditor_icons = [ |
21 | | - ('\.pdf$', fileicons_path + 'pdf.png'), |
22 | | - ('\.doc$|\.docx$|\.odt$', fileicons_path + 'doc.png'), |
23 | | - ('\.txt$', fileicons_path + 'txt.png'), |
24 | | - ('\.ppt$', fileicons_path + 'ppt.png'), |
25 | | - ('\.xls$', fileicons_path + 'xls.png'), |
26 | | - ('.*', fileicons_path + 'file.png'), # Default |
27 | | - ] |
| 20 | +ckeditor_icons = [ |
| 21 | + ('\.pdf$', fileicons_path + 'pdf.png'), |
| 22 | + ('\.doc$|\.docx$|\.odt$', fileicons_path + 'doc.png'), |
| 23 | + ('\.txt$', fileicons_path + 'txt.png'), |
| 24 | + ('\.ppt$', fileicons_path + 'ppt.png'), |
| 25 | + ('\.xls$', fileicons_path + 'xls.png'), |
| 26 | + ('.*', fileicons_path + 'file.png'), # Default |
| 27 | +] |
28 | 28 | CKEDITOR_FILEICONS = override_icons + ckeditor_icons |
29 | 29 |
|
30 | 30 |
|
|
0 commit comments