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

Extend djangocms_text_ckeditor #45

Merged
merged 1 commit into from
Feb 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 30 additions & 1 deletion gsoc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,33 @@
RUNCRON_TIMEOUT = 10

DJANGOCMS_AUDIO_ALLOWED_EXTENSIONS = ['mp3', 'ogg', 'wav']
DJANGOCMS_VIDEO_ALLOWED_EXTENSIONS = ['mp4', 'webm', 'ogv']
DJANGOCMS_VIDEO_ALLOWED_EXTENSIONS = ['mp4', 'webm', 'ogv']

# Ckeditor settings

CKEDITOR_SETTINGS = {
'disableNativeSpellChecker': False,
'language': '{{ language }}',
'extraPlugins': 'button,clipboard,dialog,dialogui,image2,lineutils,notification,toolbar,widget,widgetselection,youtube',
'toolbar': [
{'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']},
{'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt']},
# ['cmsplugins', 'cmswidget'],
{'name': 'settings', 'items': ['Source', 'ShowBlocks', 'Maximize']},
'/',
{'name': 'basicstyles',
'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'CopyFormatting',
'RemoveFormat']},
{'name': 'paragraph',
'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-',
'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']},
{'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']},
{'name': 'insert', 'items': ['Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Image', 'Youtube']},
'/',
{'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']},
{'name': 'colors', 'items': ['TextColor', 'BGColor']},
],
'toolbarCanCollapse': False,
}

TEXT_ADDITIONAL_TAGS = ('iframe',)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'af', {
selectedLabel: '%1 uitgekies'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'ar', {
selectedLabel: '%1 (محدد)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'az', {
selectedLabel: '%1 (seçilib)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'bg', {
selectedLabel: '%1 (Избрано)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'ca', {
selectedLabel: '%1 (Seleccionat)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'cs', {
selectedLabel: '%1 (Vybráno)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'da', {
selectedLabel: '%1 (Valgt)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'de-ch', {
selectedLabel: '%1 (Ausgewählt)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'de', {
selectedLabel: '%1 (Ausgewählt)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'el', {
selectedLabel: '%1 (Επιλεγμένο)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'en-gb', {
selectedLabel: '%1 (Selected)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'en', {
selectedLabel: '%1 (Selected)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'eo', {
selectedLabel: '%1 (Selektita)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'es-mx', {
selectedLabel: '%1 (Seleccionado)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'es', {
selectedLabel: '%1 (Seleccionado)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'eu', {
selectedLabel: '%1 (hautatuta)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'fa', {
selectedLabel: '%1 (انتخاب شده)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'fi', {
selectedLabel: '%1 (Valittu)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'fr', {
selectedLabel: '%1 (Sélectionné)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'gl', {
selectedLabel: '%1 (seleccionado)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'he', {
selectedLabel: '1% (סומן)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'hr', {
selectedLabel: '%1 (Odabrano)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'hu', {
selectedLabel: '%1 (Kiválasztva)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'id', {
selectedLabel: '%1(Dipilih)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'it', {
selectedLabel: '%1 (selezionato)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'ja', {
selectedLabel: '%1 (選択中)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'km', {
selectedLabel: '%1 (បាន​ជ្រើស​រើស)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'ko', {
selectedLabel: '%1 (선택됨)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'ku', {
selectedLabel: '%1 (هەڵبژێردراو)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'lt', {
selectedLabel: '%1 (Pasirinkta)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'nb', {
selectedLabel: '%1 (Valgt)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'nl', {
selectedLabel: '%1 (Geselecteerd)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'no', {
selectedLabel: '%1 (Valgt)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'oc', {
selectedLabel: '%1 (Seleccionat)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'pl', {
selectedLabel: '%1 (Wybrany)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'pt-br', {
selectedLabel: '%1 (Selecionado)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'pt', {
selectedLabel: '%1 (Selecionado)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'ro', {
selectedLabel: '%1 (Selectat)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'ru', {
selectedLabel: '%1 (Выбрано)'
} );
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

CKEDITOR.plugins.setLang( 'button', 'sk', {
selectedLabel: '%1 (Vybrané)'
} );
Loading