|
136 | 136 |
|
137 | 137 | STATICFILES_DIRS = ( |
138 | 138 | os.path.join(BASE_DIR, '../assets'), |
139 | | - ) |
| 139 | +) |
140 | 140 | STATIC_URL = '/static/' |
141 | 141 |
|
142 | 142 | # Simplified static file serving. |
|
150 | 150 |
|
151 | 151 | CKEDITOR_CONFIGS = { |
152 | 152 | 'default': { |
153 | | - 'toolbar': [['Source', 'Link', 'Unlink', 'SpecialChar', 'Image', 'CodeSnippet']], |
154 | | - 'height': 400, |
155 | | - 'width': 900, |
| 153 | + 'toolbar_Basic': [['Source', 'Link', 'Unlink', 'SpecialChar', 'Image', 'CodeSnippet']], |
| 154 | + 'toolbar_CustomConfig': [ |
| 155 | + {'name': 'basicstyles', |
| 156 | + 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, |
| 157 | + {'name': 'paragraph', |
| 158 | + 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', |
| 159 | + 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', |
| 160 | + 'Language']}, |
| 161 | + {'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']}, |
| 162 | + {'name': 'insert', |
| 163 | + 'items': ['Image', 'CodeSnippet', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']}, |
| 164 | + '/', |
| 165 | + {'name': 'styles', 'items': [ |
| 166 | + 'Styles', 'Format', 'Font', 'FontSize']}, |
| 167 | + {'name': 'colors', 'items': ['TextColor', 'BGColor']}, |
| 168 | + ], |
| 169 | + 'toolbar': 'toolbar_CustomConfig', # put tollbar config name here |
156 | 170 | 'removePlugins': 'stylesheetparser', |
157 | | - 'extraPlugins': 'codesnippet', |
| 171 | + 'extraPlugins': ','.join([ |
| 172 | + 'codesnippet', |
| 173 | + 'div', |
| 174 | + 'autolink', |
| 175 | + 'autoembed', |
| 176 | + 'embedsemantic', |
| 177 | + 'autogrow', |
| 178 | + 'widget', |
| 179 | + 'lineutils', |
| 180 | + 'clipboard', |
| 181 | + 'dialog', |
| 182 | + 'dialogui', |
| 183 | + 'elementspath' |
| 184 | + ]), |
158 | 185 | }, |
159 | 186 | } |
160 | 187 |
|
|
0 commit comments