Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 8c32a8c

Browse files
committedFeb 25, 2019
Extend djangocms_text_ckeditor to support adding images and youtube videos
1 parent 115e2c1 commit 8c32a8c

File tree

424 files changed

+27074
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

424 files changed

+27074
-1
lines changed
 

‎gsoc/settings.py

+30-1
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,33 @@
267267
RUNCRON_TIMEOUT = 10
268268

269269
DJANGOCMS_AUDIO_ALLOWED_EXTENSIONS = ['mp3', 'ogg', 'wav']
270-
DJANGOCMS_VIDEO_ALLOWED_EXTENSIONS = ['mp4', 'webm', 'ogv']
270+
DJANGOCMS_VIDEO_ALLOWED_EXTENSIONS = ['mp4', 'webm', 'ogv']
271+
272+
# Ckeditor settings
273+
274+
CKEDITOR_SETTINGS = {
275+
'disableNativeSpellChecker': False,
276+
'language': '{{ language }}',
277+
'extraPlugins': 'button,clipboard,dialog,dialogui,image2,lineutils,notification,toolbar,widget,widgetselection,youtube',
278+
'toolbar': [
279+
{'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']},
280+
{'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt']},
281+
# ['cmsplugins', 'cmswidget'],
282+
{'name': 'settings', 'items': ['Source', 'ShowBlocks', 'Maximize']},
283+
'/',
284+
{'name': 'basicstyles',
285+
'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'CopyFormatting',
286+
'RemoveFormat']},
287+
{'name': 'paragraph',
288+
'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-',
289+
'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']},
290+
{'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']},
291+
{'name': 'insert', 'items': ['Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Image', 'Youtube']},
292+
'/',
293+
{'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']},
294+
{'name': 'colors', 'items': ['TextColor', 'BGColor']},
295+
],
296+
'toolbarCanCollapse': False,
297+
}
298+
299+
TEXT_ADDITIONAL_TAGS = ('iframe',)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3+
* For licensing, see LICENSE.md or http://ckeditor.com/license
4+
*/
5+
6+
CKEDITOR.plugins.setLang( 'button', 'af', {
7+
selectedLabel: '%1 uitgekies'
8+
} );

0 commit comments

Comments
 (0)
This repository has been archived.