-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee52771
commit e9f57a7
Showing
52 changed files
with
1,649 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
152 changes: 152 additions & 0 deletions
152
inc/class/ckeditor/plugins/html5audio/dialogs/html5audio.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
CKEDITOR.dialog.add( 'html5audio', function( editor ) { | ||
return { | ||
title: editor.lang.html5audio.title, | ||
minWidth: 500, | ||
minHeight: 100, | ||
contents: [ { | ||
id: 'info', | ||
label: editor.lang.html5audio.infoLabel, | ||
elements: [ { | ||
type: 'vbox', | ||
padding: 0, | ||
children: [ { | ||
type: 'hbox', | ||
widths: [ '365px', '110px' ], | ||
align: 'right', | ||
children: [ { | ||
type: 'text', | ||
id: 'url', | ||
label: editor.lang.common.url, | ||
required: true, | ||
validate: CKEDITOR.dialog.validate.notEmpty( editor.lang.html5audio.urlMissing ), | ||
setup: function( widget ) { | ||
this.setValue( widget.data.src ); | ||
}, | ||
commit: function( widget ) { | ||
widget.setData( 'src', this.getValue() ); | ||
} | ||
}, | ||
{ | ||
type: 'button', | ||
id: 'browse', | ||
// v-align with the 'txtUrl' field. | ||
// TODO: We need something better than a fixed size here. | ||
style: 'display:inline-block;margin-top:14px;', | ||
align: 'center', | ||
label: editor.lang.common.browseServer, | ||
hidden: true, | ||
filebrowser: 'info:url' | ||
} ] | ||
} ] | ||
}, | ||
{ | ||
type: 'hbox', | ||
id: 'alignment', | ||
children: [ { | ||
type: 'radio', | ||
id: 'align', | ||
label: editor.lang.common.align, | ||
items: [ | ||
[editor.lang.common.alignCenter, 'center'], | ||
[editor.lang.common.alignLeft, 'left'], | ||
[editor.lang.common.alignRight, 'right'], | ||
[editor.lang.common.alignNone, 'none'] | ||
], | ||
'default': 'center', | ||
setup: function( widget ) { | ||
if ( widget.data.align ) { | ||
this.setValue( widget.data.align ); | ||
} | ||
}, | ||
commit: function( widget ) { | ||
widget.setData( 'align', this.getValue() ); | ||
} | ||
} ] | ||
} ] | ||
}, | ||
{ | ||
id: 'Upload', | ||
hidden: true, | ||
filebrowser: 'uploadButton', | ||
label: editor.lang.html5audio.upload, | ||
elements: [ { | ||
type: 'file', | ||
id: 'upload', | ||
label: editor.lang.html5audio.btnUpload, | ||
style: 'height:40px', | ||
size: 38 | ||
}, | ||
{ | ||
type: 'fileButton', | ||
id: 'uploadButton', | ||
filebrowser: 'info:url', | ||
label: editor.lang.html5audio.btnUpload, | ||
'for': [ 'Upload', 'upload' ] | ||
} ] | ||
}, | ||
{ | ||
id: 'advanced', | ||
label: editor.lang.html5audio.advanced, | ||
elements: [ { | ||
type: 'vbox', | ||
padding: 10, | ||
children: [ { | ||
type: 'hbox', | ||
children: [ { | ||
type: 'radio', | ||
id: 'autoplay', | ||
label: editor.lang.html5audio.autoplay, | ||
items: [ | ||
[editor.lang.html5audio.yes, 'yes'], | ||
[editor.lang.html5audio.no, 'no'] | ||
], | ||
'default': 'no', | ||
setup: function( widget ) { | ||
if ( widget.data.autoplay ) { | ||
this.setValue( widget.data.autoplay ); | ||
} | ||
}, | ||
commit: function( widget ) { | ||
widget.setData( 'autoplay', this.getValue() ); | ||
} | ||
}, | ||
{ | ||
type: 'radio', | ||
id: 'allowdownload', | ||
label: editor.lang.html5audio.allowdownload, | ||
items: [ | ||
[editor.lang.html5audio.yes, 'yes'], | ||
[editor.lang.html5audio.no, 'no'] | ||
], | ||
'default': 'no', | ||
setup: function( widget ) { | ||
if ( widget.data.allowdownload ) { | ||
this.setValue(widget.data.allowdownload); | ||
} | ||
}, | ||
commit: function( widget ) { | ||
widget.setData( 'allowdownload', this.getValue() ); | ||
} | ||
} ] | ||
}, | ||
{ | ||
type: 'hbox', | ||
children: [ { | ||
type: "text", | ||
id: 'advisorytitle', | ||
label: editor.lang.html5audio.advisorytitle, | ||
'default': '', | ||
setup: function( widget ) { | ||
if ( widget.data.advisorytitle ) { | ||
this.setValue(widget.data.advisorytitle); | ||
} | ||
}, | ||
commit: function( widget ) { | ||
widget.setData( 'advisorytitle', this.getValue() ); | ||
} | ||
} ] | ||
} ] | ||
} ] | ||
} ] | ||
}; | ||
} ); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'bg', { | ||
button: 'Вмъква HTML5 аудио', | ||
title: 'HTML5 аудио', | ||
infoLabel: 'Аудио', | ||
urlMissing: 'URL адресът на източника на аудио липсва.', | ||
audioProperties: 'Свойства на аудио', | ||
upload: 'Качване', | ||
btnUpload: 'Изпрати на сървъра', | ||
advanced: 'Разширено', | ||
autoplay: 'Автоматично изпълнение', | ||
allowdownload: 'Позволено изтегляне?', | ||
advisorytitle: 'Заглавие', | ||
yes: 'Да', | ||
no: 'Не' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'ca', { | ||
button: "Insereix un àudio HTML5", | ||
title: "Àudio HTML5", | ||
infoLabel: "Informació de l'àudio", | ||
urlMissing: "Falta l'URL d'origen d'àudio.", | ||
audioProperties: "Propietats de l'àudio", | ||
upload: "Pujar", | ||
btnUpload: "Envia-lo al servidor", | ||
advanced: "Avançat", | ||
autoplay: "Reproducció automàtica?", | ||
allowdownload: "Permet la descàrrega?", | ||
advisorytitle: 'Advisory title', | ||
yes: "Sí", | ||
no: "No" | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'de', { | ||
button: 'HTML5 Audio einfügen', | ||
title: 'HTML5 Audio', | ||
infoLabel: 'Audio Infos', | ||
urlMissing: 'Sie haben keine URL zur Audio-Datei angegeben.', | ||
audioProperties: 'Audio-Einstellungen', | ||
upload: 'Hochladen', | ||
btnUpload: 'Zum Server senden', | ||
advanced: 'Erweitert', | ||
autoplay: 'Autoplay?', | ||
allowdownload: 'Download zulassen?', | ||
advisorytitle: 'Titel Beschreibung', | ||
yes: 'Ja', | ||
no: 'Nein' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'el', { | ||
button: 'Προσθέστε HTML5 ήχο', | ||
title: 'HTML5 ήχος', | ||
infoLabel: 'Πληροφορίες ήχου', | ||
urlMissing: 'Η πηγή URL ήχου απουσιάζει.', | ||
audioProperties: 'Ιδιότητες ήχου', | ||
upload: 'Upload', | ||
btnUpload: 'Αποστολή στον διακομιστή', | ||
advanced: 'Προχωρημένα', | ||
autoplay: 'Αυτόματη αναπαραγωγή;', | ||
allowdownload: 'Επιτρέψτε τη λήψη;', | ||
advisorytitle: 'Advisory title', | ||
yes: 'Ναι', | ||
no: 'Όχι' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'en', { | ||
button: 'Insert HTML5 audio', | ||
title: 'HTML5 audio', | ||
infoLabel: 'Audio info', | ||
urlMissing: 'Audio source URL is missing.', | ||
audioProperties: 'Audio properties', | ||
upload: 'Upload', | ||
btnUpload: 'Send it to the server', | ||
advanced: 'Advanced', | ||
autoplay: 'Autoplay?', | ||
allowdownload: 'Allow download?', | ||
advisorytitle: 'Advisory title', | ||
yes: 'Yes', | ||
no: 'No' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'es', { | ||
button: 'Insertar audio HTML5', | ||
title: 'Audio HTML5', | ||
infoLabel: 'Información del audio', | ||
urlMissing: 'La URL del audio no puede estar vacia.', | ||
audioProperties: 'Propiedades del audio', | ||
upload: 'Cargar', | ||
btnUpload: 'Enviar al servidor', | ||
advanced: 'Avanzado', | ||
autoplay: '¿Reproducir automáticamente?', | ||
allowdownload: '¿Permitir la descarga?', | ||
advisorytitle: 'Advisory title', | ||
yes: 'Si', | ||
no: 'No' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'eu', { | ||
button: 'Txertatu HTML5 audioa', | ||
title: 'HTML5 audioa', | ||
infoLabel: 'Audioaren informazioa', | ||
urlMissing: 'Audioaren URLak ezin du hutsik egon.', | ||
audioProperties: 'Audioaren propietateak', | ||
upload: 'Kargatu', | ||
btnUpload: 'Bidali zerbitzarira', | ||
advanced: 'Aurreratua', | ||
autoplay: 'Automatikoki erreproduzitu?', | ||
allowdownload: 'Baimendu deskargatzea?', | ||
advisorytitle: 'Argibidea', | ||
yes: 'Bai', | ||
no: 'Ez' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'fa', { | ||
button: 'اضافه کردن فایل صوتی', | ||
title: 'اضافه کردن فایل صوتی به شکل HTML5', | ||
infoLabel: 'اطلاعات فایل صوتی', | ||
urlMissing: 'آدرس منبع فایل صوتی یافت نشد.', | ||
audioProperties: 'ویژگیهای فایل صوتی', | ||
upload: 'بارگذاری', | ||
btnUpload: 'ارسال به سرور', | ||
advanced: 'تنظیمات پیشرفته', | ||
autoplay: 'پخش خودکار؟', | ||
allowdownload: 'دانلود؟', | ||
advisorytitle: 'Advisory title', | ||
yes: 'بله', | ||
no: 'خیر' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'fr', { | ||
button: 'Insérer un lecteur audio HTML5', | ||
title: 'HTML5 audio', | ||
infoLabel: 'Informations audio', | ||
urlMissing: 'URL de la source audio manquante. Veuillez la renseigner.', | ||
audioProperties: 'Propriétés Audio', | ||
upload: 'Télécharger', | ||
btnUpload: 'Envoyer vers le serveur', | ||
advanced: 'Avancé', | ||
autoplay: 'Jouer automatiquement ?', | ||
allowdownload: 'Autoriser le téléchargement ?', | ||
advisorytitle: 'Infobulle', | ||
yes: 'Oui', | ||
no: 'Non' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'ru', { | ||
button: 'Вставить HTML5 аудио', | ||
title: 'HTML5 аудио', | ||
infoLabel: 'Аудио', | ||
urlMissing: 'Не выбран источник аудио', | ||
audioProperties: 'Свойства аудио', | ||
upload: 'Загрузить', | ||
btnUpload: 'Загрузить на сервер', | ||
advanced: 'Дополнительно', | ||
autoplay: 'Автовоспроизведение', | ||
allowdownload: 'Разрешить загрузку', | ||
advisorytitle: 'Заголовок', | ||
yes: 'Да', | ||
no: 'Нет' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CKEDITOR.plugins.setLang( 'html5audio', 'uk', { | ||
button: 'Вставити HTML5 аудіо', | ||
title: 'HTML5 аудіо', | ||
infoLabel: 'Інформація', | ||
urlMissing: 'Не обрано джерела аудіо', | ||
audioProperties: 'Властивості аудіо', | ||
upload: 'Відвантажити', | ||
btnUpload: 'Відвантажити на сервер', | ||
advanced: 'Додатково', | ||
autoplay: 'Автовідтворення?', | ||
allowdownload: 'Дозволити завантаження?', | ||
advisorytitle: 'Заголовок', | ||
yes: 'Так', | ||
no: 'Ні' | ||
} ); |
Oops, something went wrong.