first commit
This commit is contained in:
BIN
libraries/ckeditor/plugins/youtube/images/icon.png
Normal file
BIN
libraries/ckeditor/plugins/youtube/images/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 419 B |
BIN
libraries/ckeditor/plugins/youtube/images/icon_1.png
Normal file
BIN
libraries/ckeditor/plugins/youtube/images/icon_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 419 B |
22
libraries/ckeditor/plugins/youtube/lang/ar.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/ar.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'ar', {
|
||||
button : 'شيفرة تضمين اليوتيوب',
|
||||
title : 'شيفرة تضمين اليوتيوب',
|
||||
txtEmbed : 'الصق شيفرة التضمين هنا',
|
||||
txtUrl : 'الصق رابط فيديو اليوتيوب',
|
||||
txtWidth : 'العرض',
|
||||
txtHeight : 'الطول',
|
||||
chkRelated : 'اظهر الفيديوهات المقترحة في نهاية الفيديو',
|
||||
txtStartAt : 'ابدأ عند (ss او mm:ss او hh:mm:ss)',
|
||||
chkPrivacy : 'تفعيل وضع تحسين الخصوصية',
|
||||
chkOlderCode : 'استخدم شيفرة التضمين القديمة',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'يجب عليك ادخال شيفرة التضمين او الرابط',
|
||||
invalidEmbed : 'شيفرة التضمين التي قمت بإدخالها تبدو غير صحيحة',
|
||||
invalidUrl : 'الرابط الذي قمت بإدخاله يبدو غير صحيح',
|
||||
or : 'او',
|
||||
noWidth : 'يجب عليك ادخال العرض',
|
||||
invalidWidth : 'يجب عليك ادخال عرض صحيح',
|
||||
noHeight : 'يجب عليك ادخال الطول',
|
||||
invalidHeight : 'يجب عليك ادخال طول صحيح',
|
||||
invalidTime : 'يجب عليك ادخال وقت بداية صحيح'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/ar_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/ar_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'ar', {
|
||||
button : 'شيفرة تضمين اليوتيوب',
|
||||
title : 'شيفرة تضمين اليوتيوب',
|
||||
txtEmbed : 'الصق شيفرة التضمين هنا',
|
||||
txtUrl : 'الصق رابط فيديو اليوتيوب',
|
||||
txtWidth : 'العرض',
|
||||
txtHeight : 'الطول',
|
||||
chkRelated : 'اظهر الفيديوهات المقترحة في نهاية الفيديو',
|
||||
txtStartAt : 'ابدأ عند (ss او mm:ss او hh:mm:ss)',
|
||||
chkPrivacy : 'تفعيل وضع تحسين الخصوصية',
|
||||
chkOlderCode : 'استخدم شيفرة التضمين القديمة',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'يجب عليك ادخال شيفرة التضمين او الرابط',
|
||||
invalidEmbed : 'شيفرة التضمين التي قمت بإدخالها تبدو غير صحيحة',
|
||||
invalidUrl : 'الرابط الذي قمت بإدخاله يبدو غير صحيح',
|
||||
or : 'او',
|
||||
noWidth : 'يجب عليك ادخال العرض',
|
||||
invalidWidth : 'يجب عليك ادخال عرض صحيح',
|
||||
noHeight : 'يجب عليك ادخال الطول',
|
||||
invalidHeight : 'يجب عليك ادخال طول صحيح',
|
||||
invalidTime : 'يجب عليك ادخال وقت بداية صحيح',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/cs.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/cs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'cs', {
|
||||
button : 'Vložit video YouTube',
|
||||
title : 'Vložit video YouTube',
|
||||
txtEmbed : 'Zde vložte kód pro vložení',
|
||||
txtUrl : 'Vložte adresu URL videa YouTube',
|
||||
txtWidth : 'Šířka',
|
||||
txtHeight : 'Výška',
|
||||
chkRelated : 'Po dohrání videa zobrazit navrhovaná videa',
|
||||
txtStartAt : 'Začít přehrávat v čase (ss nebo mm:ss nebo hh:mm:ss)',
|
||||
chkPrivacy : 'Povolit režim s rozšířeným soukromím',
|
||||
chkOlderCode : 'Použít starý kód pro vložení',
|
||||
chkAutoplay : 'Automatické spuštění přehrávání',
|
||||
noCode : 'Musíte vložit kód pro vložení nebo adresu URL',
|
||||
invalidEmbed : 'Vložený kód pro vložení zřejmě není platný',
|
||||
invalidUrl : 'Zadaná adresa URL zřejmě není platná',
|
||||
or : 'nebo',
|
||||
noWidth : 'Musíte zadat šířku',
|
||||
invalidWidth : 'Zadejte platnou šířku',
|
||||
noHeight : 'Musíte zadat výšku',
|
||||
invalidHeight : 'Zadejte platnou výšku',
|
||||
invalidTime : 'Zadejte platný počáteční čas',
|
||||
txtResponsive : 'Responzivní design (ignorovat výšku a šířku, uzpůsobit šířce)'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/de.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/de.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'de', {
|
||||
button : 'Youtube Video einbinden',
|
||||
title : 'Youtube Video einbinden',
|
||||
txtEmbed : 'Embed Code hier einfügen',
|
||||
txtUrl : 'Youtube Video URL hier einfügen',
|
||||
txtWidth : 'Breite',
|
||||
txtHeight : 'Höhe',
|
||||
chkRelated : 'Video Vorschläge am Video Ende einblenden',
|
||||
txtStartAt : 'Start bei Position (ss oder mm:ss oder hh:mm:ss)',
|
||||
chkPrivacy : 'Aktiviere die erweiterte Privatsphäre',
|
||||
chkOlderCode : 'Benutzer alten Embed Code',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'Sie müssen einen Embed Code oder URL angeben',
|
||||
invalidEmbed : 'Der angegebene Embed Code scheint nicht gültig zu sein.',
|
||||
invalidUrl : 'Die angegebene URL scheint nicht gültig zu sein.',
|
||||
or : 'oder',
|
||||
noWidth : 'Geben Sie eine Breite an',
|
||||
invalidWidth : 'Geben Sie eine gültige Breite an',
|
||||
noHeight : 'Geben Sie eine Höhe an',
|
||||
invalidHeight : 'Geben Sie eine gültige Höhe an',
|
||||
invalidTime : 'Geben Sie eine gültige Startzeit an'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/de_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/de_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'de', {
|
||||
button : 'YouTube Video einbinden',
|
||||
title : 'YouTube Video einbinden',
|
||||
txtEmbed : 'Embed Code hier einfügen',
|
||||
txtUrl : 'YouTube Video URL hier einfügen',
|
||||
txtWidth : 'Breite',
|
||||
txtHeight : 'Höhe',
|
||||
chkRelated : 'Vorschläge am Ende des Videos einblenden',
|
||||
txtStartAt : 'Start bei Position (ss oder mm:ss oder hh:mm:ss)',
|
||||
chkPrivacy : 'Erweiterten Datenschutzmodus aktivieren',
|
||||
chkOlderCode : 'Benutze alten Embed Code',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'Sie müssen einen Embed Code oder URL angeben',
|
||||
invalidEmbed : 'Der angegebene Embed Code scheint nicht gültig zu sein.',
|
||||
invalidUrl : 'Die angegebene URL scheint nicht gültig zu sein.',
|
||||
or : 'oder',
|
||||
noWidth : 'Geben Sie eine Breite an',
|
||||
invalidWidth : 'Geben Sie eine gültige Breite an',
|
||||
noHeight : 'Geben Sie eine Höhe an',
|
||||
invalidHeight : 'Geben Sie eine gültige Höhe an',
|
||||
invalidTime : 'Geben Sie eine gültige Startzeit an',
|
||||
txtResponsive : 'Automatische Größe (ignoriert Breite und Höhe)'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/el.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/el.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'el', {
|
||||
button: 'Ενσωμάτωση Youtube βίντεο',
|
||||
title: 'Ενσωμάτωση Youtube βίντεο',
|
||||
txtEmbed: 'Επικόλλησε τον κώδικα ενσωμάτωσης',
|
||||
txtUrl: 'Επικόλλησε το URL του βίντεο',
|
||||
txtWidth: 'Πλάτος',
|
||||
txtHeight: 'Ύψος',
|
||||
chkRelated: 'Εμφάνιση προτεινόμενων βίντεο μόλις ολοκληρωθεί',
|
||||
txtStartAt: 'Χρόνος εκκίνησης (ss or mm:ss or hh:mm:ss)',
|
||||
chkPrivacy: 'Ενεργοποίηση λειτουργίας ενισχυμένου απορρήτου',
|
||||
chkOlderCode: 'Χρήση παλαιού κώδικα ενσωμάτωσης',
|
||||
chkAutoplay: 'Αυτόματη εκκίνηση',
|
||||
noCode: 'Χρειάζεται κώδικας ενσωμάτωσης ή URL',
|
||||
invalidEmbed: 'Ο κώδικας ενσωμάτωσης που εισήγατε δεν μοιάζει σωστός',
|
||||
invalidUrl: 'Το URL που εισήγατε δεν μοιάζει σωστό',
|
||||
or: 'ή',
|
||||
noWidth: 'Συμπληρώστε το πλάτος',
|
||||
invalidWidth: 'Λανθασμένο πλάτος',
|
||||
noHeight: 'Συμπληρώστε το ύψος',
|
||||
invalidHeight: 'Λανθασμένο ύψος',
|
||||
invalidTime: 'Λανθασμένος χρόνος εκκίνησης'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/en.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/en.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'en', {
|
||||
button : 'Embed Youtube Video',
|
||||
title : 'Embed Youtube Video',
|
||||
txtEmbed : 'Paste Embed Code Here',
|
||||
txtUrl : 'Paste Youtube Video URL',
|
||||
txtWidth : 'Width',
|
||||
txtHeight : 'Height',
|
||||
chkRelated : 'Show suggested videos at the video\'s end',
|
||||
txtStartAt : 'Start at (ss or mm:ss or hh:mm:ss)',
|
||||
chkPrivacy : 'Enable privacy-enhanced mode',
|
||||
chkOlderCode : 'Use old embed code',
|
||||
chkAutoplay: 'Autoplay',
|
||||
noCode : 'You must input an embed code or URL',
|
||||
invalidEmbed : 'The embed code you\'ve entered doesn\'t appear to be valid',
|
||||
invalidUrl : 'The URL you\'ve entered doesn\'t appear to be valid',
|
||||
or : 'or',
|
||||
noWidth : 'You must inform the width',
|
||||
invalidWidth : 'Inform a valid width',
|
||||
noHeight : 'You must inform the height',
|
||||
invalidHeight : 'Inform a valid height',
|
||||
invalidTime : 'Inform a valid start time'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/en_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/en_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'en', {
|
||||
button : 'Embed YouTube Video',
|
||||
title : 'Embed YouTube Video',
|
||||
txtEmbed : 'Paste Embed Code Here',
|
||||
txtUrl : 'Paste YouTube Video URL',
|
||||
txtWidth : 'Width',
|
||||
txtHeight : 'Height',
|
||||
chkRelated : 'Show suggested videos at the video\'s end',
|
||||
txtStartAt : 'Start at (ss or mm:ss or hh:mm:ss)',
|
||||
chkPrivacy : 'Enable privacy-enhanced mode',
|
||||
chkOlderCode : 'Use old embed code',
|
||||
chkAutoplay: 'Autoplay',
|
||||
noCode : 'You must input an embed code or URL',
|
||||
invalidEmbed : 'The embed code you\'ve entered doesn\'t appear to be valid',
|
||||
invalidUrl : 'The URL you\'ve entered doesn\'t appear to be valid',
|
||||
or : 'or',
|
||||
noWidth : 'You must inform the width',
|
||||
invalidWidth : 'Inform a valid width',
|
||||
noHeight : 'You must inform the height',
|
||||
invalidHeight : 'Inform a valid height',
|
||||
invalidTime : 'Inform a valid start time',
|
||||
txtResponsive : 'Make Responsive (ignore width and height, fit to width)'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/es.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/es.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'es', {
|
||||
button : 'Embed YouTube video',
|
||||
title : 'Embed YouTube video',
|
||||
txtEmbed : 'Pegar el código embed',
|
||||
txtUrl : 'Pegar la URL al video de Youtube',
|
||||
txtWidth : 'Anchura',
|
||||
txtHeight : 'Altura',
|
||||
chkRelated : 'Mostrar videos sugeridos al final de este video',
|
||||
txtStartAt : 'Comenzar en (ss or mm:ss or hh:mm:ss)',
|
||||
chkPrivacy : 'Habilitar el modo privacy-enhanced',
|
||||
chkOlderCode : 'Usar código embed viejo',
|
||||
chkAutoplay: 'Autoplay',
|
||||
noCode : 'Debes de introducir un código embed o URL',
|
||||
invalidEmbed : 'El código embed introducido parece no ser valido',
|
||||
invalidUrl : 'La URL introducida parece no ser valida',
|
||||
or : 'o',
|
||||
noWidth : 'Debes de dar la anchura',
|
||||
invalidWidth : 'Da una anchura valida',
|
||||
noHeight : 'Debes dar una altura valida',
|
||||
invalidHeight : 'Da una altura valida',
|
||||
invalidTime : 'Da un tiempo de valido',
|
||||
txtResponsive : 'Hacer responsivo (ignorar anchura y altura, ajustar a la anchura)'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/et.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/et.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'et', {
|
||||
button : 'Lisa YouTube video',
|
||||
title : 'YouTube video lisamine',
|
||||
txtEmbed : 'Kleepige manustatud kood siia',
|
||||
txtUrl : 'Kleepige YouTube video veebiaadress',
|
||||
txtWidth : 'Laius',
|
||||
txtHeight : 'Kõrgus',
|
||||
chkRelated : 'Näita soovitatud videosi antud video lõppus',
|
||||
txtStartAt : 'Alguskoht: (ss või mm:ss või hh:mm:ss)',
|
||||
chkPrivacy : 'Aktiveerige privaatsust täiendav režiim',
|
||||
chkOlderCode : 'Kasutage vana manuskoodi',
|
||||
chkAutoplay: 'Automaatesitlus',
|
||||
noCode : 'Te peate sisestama video manuskoodi või veebiaadressi',
|
||||
invalidEmbed : 'Manuskood mille sisestasite ei paista olevat korrektne',
|
||||
invalidUrl : 'Veebiaadress mille sisestasite ei paista olevat korrektne',
|
||||
or : 'või',
|
||||
noWidth : 'Te peate sisestama video laiuse',
|
||||
invalidWidth : 'Sisestage korrektne laius',
|
||||
noHeight : 'Te peate sisestama video kõrguse',
|
||||
invalidHeight : 'Sisestage korrektne kõrgus',
|
||||
invalidTime : 'Sisestage korrektne algusaeg',
|
||||
txtResponsive : 'Aktiveerige ekraani laiusega ühilduv režiim'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/fi.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/fi.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'fi', {
|
||||
button : 'Upota YouTube-video',
|
||||
title : 'Upota YouTube-video',
|
||||
txtEmbed : 'Syötä YouTube-videon upotuskoodi',
|
||||
txtUrl : 'Syötä YouTube-videon www-osoite',
|
||||
txtWidth : 'Leveys',
|
||||
txtHeight : 'Korkeus',
|
||||
chkRelated : 'Näytä suositukset lopussa',
|
||||
txtStartAt : 'Aloitusaika (ss tai mm:ss tai tt:mm:ss)',
|
||||
chkPrivacy : 'Aktivoi yksityisyyttä parantava tila',
|
||||
chkOlderCode : 'Käytä vanhaa upotuskoodia',
|
||||
chkAutoplay: 'Soita automaattisesti',
|
||||
noCode : 'Sinun täytyy syötää upotuskoodi tai www-osoite',
|
||||
invalidEmbed : 'Upotuskoodi on virheellinen',
|
||||
invalidUrl : 'Www-osoite on virheellinen',
|
||||
or : 'tai',
|
||||
noWidth : 'Syötä leveys',
|
||||
invalidWidth : 'Leveys on virheellinen',
|
||||
noHeight : 'Syötä korkeus',
|
||||
invalidHeight : 'Korkeus on virheellinen',
|
||||
invalidTime : 'Aloitusaika on virheellinen',
|
||||
txtResponsive : 'Responsiivinen leveys (sovita leveys)'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/fr.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/fr.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'fr', {
|
||||
button : 'Insérer une vidéo Youtube',
|
||||
title : 'Insérer une vidéo youtube',
|
||||
txtEmbed : 'Coller le code embed ici',
|
||||
txtUrl : 'Coller l\'url de la vidéo ici',
|
||||
txtWidth : 'Largeur',
|
||||
txtHeight : 'Hauteur',
|
||||
chkRelated : 'Montrer les suggestions de vidéo à la fin',
|
||||
txtStartAt : 'Commencer à (ss ou mm:ss ou hh:mm:ss)',
|
||||
chkPrivacy : 'Activer la protection de la vie privée',
|
||||
chkOlderCode : 'Utiliser l\'ancien code embed',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'Vous devez entrer un code embed ou une url',
|
||||
invalidEmbed : 'Le code embed est invalide',
|
||||
invalidUrl : 'L\'url est invalide',
|
||||
or : 'ou',
|
||||
noWidth : 'Vous devez saisir une largeur',
|
||||
invalidWidth : 'La largeur saisie est invalide',
|
||||
noHeight : 'Vous devez saisir une hauteur',
|
||||
invalidHeight : 'La hauteur saisie est invalide',
|
||||
invalidTime : 'Le temps de départ de la vidéo est invalide'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/fr_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/fr_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'fr', {
|
||||
button : 'Insérer une vidéo Youtube',
|
||||
title : 'Insérer une vidéo youtube',
|
||||
txtEmbed : 'Coller le code embed ici',
|
||||
txtUrl : 'Coller l\'url de la vidéo ici',
|
||||
txtWidth : 'Largeur',
|
||||
txtHeight : 'Hauteur',
|
||||
chkRelated : 'Montrer les suggestions de vidéo à la fin',
|
||||
txtStartAt : 'Commencer à (ss ou mm:ss ou hh:mm:ss)',
|
||||
chkPrivacy : 'Activer la protection de la vie privée',
|
||||
chkOlderCode : 'Utiliser l\'ancien code embed',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'Vous devez entrer un code embed ou une url',
|
||||
invalidEmbed : 'Le code embed est invalide',
|
||||
invalidUrl : 'L\'url est invalide',
|
||||
or : 'ou',
|
||||
noWidth : 'Vous devez saisir une largeur',
|
||||
invalidWidth : 'La largeur saisie est invalide',
|
||||
noHeight : 'Vous devez saisir une hauteur',
|
||||
invalidHeight : 'La hauteur saisie est invalide',
|
||||
invalidTime : 'Le temps de départ de la vidéo est invalide',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/he.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/he.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'he', {
|
||||
button : 'שבץ וידאו של YouTube',
|
||||
title : 'שבץ וידאו של YouTube',
|
||||
txtEmbed : 'הדבק את קוד השיבוץ כאן',
|
||||
txtUrl : 'הדבק כתובת וידאו YouTube',
|
||||
txtWidth : 'אורך',
|
||||
txtHeight : 'גובה',
|
||||
chkRelated : 'הצג סרטונים מומלצים בסוף הודיאו',
|
||||
txtStartAt : 'התחל ב (ss או mm:ss או hh:mm:ss)',
|
||||
chkPrivacy : 'הפעל מצב פרטיות המשופרת',
|
||||
chkOlderCode : 'השתמש בקוד הטמעה ישן',
|
||||
chkAutoplay: 'הפעלה אוטומטית',
|
||||
noCode : 'אתה חייב להזין קוד embed כתובת וידאו אתר',
|
||||
invalidEmbed : 'קוד ההטמעה שהוזן אינו נראה חוקי',
|
||||
invalidUrl : 'כתובת הוידאו אינה נראת חוקית',
|
||||
or : 'או',
|
||||
noWidth : 'חובה להזין אורך',
|
||||
invalidWidth : 'האורך שהוזן שגוי',
|
||||
noHeight : 'חובה להזין גובה',
|
||||
invalidHeight : 'הגובה שהוזן שגוי',
|
||||
invalidTime : 'זמן התחלה שהוזן שגוי',
|
||||
txtResponsive : 'הפוך לרספונסיבי (התעלם מרוחב וגובה, התאם לרוחב)'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/hu.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/hu.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'hu', {
|
||||
button : 'Youtube videó beillesztése',
|
||||
title : 'Youtube videó beillesztése',
|
||||
txtEmbed : 'Illessze be a beágyazott kódot',
|
||||
txtUrl : 'Illessze be a Youtube videó URL-jét',
|
||||
txtWidth : 'Szélesség',
|
||||
txtHeight : 'Magasság',
|
||||
txtStartAt : 'Kezdő időpont (ss vagy mm:ss vagy hh:mm:ss)',
|
||||
chkRelated : 'Ajánlott videók megjelenítése, amikor a videó befejeződik',
|
||||
chkPrivacy : 'Fokozott adatvédelmi mód engedélyezése',
|
||||
chkOlderCode : 'Régi beágyazott kód használata',
|
||||
chkAutoplay : 'Automatikus lejátszás',
|
||||
noCode : 'A beágyazott kód, vagy az URL megadása kötelező',
|
||||
invalidEmbed : 'A beágyazott kód érvénytelen',
|
||||
invalidUrl : 'A megadott URL érvénytelen',
|
||||
or : 'vagy',
|
||||
noWidth : 'A szélesség megadása kötelező',
|
||||
invalidWidth : 'Érvényes szélességet adjon meg',
|
||||
noHeight : 'A magasság megadása kötelező',
|
||||
invalidHeight : 'Érvényes magasságot adjon meg',
|
||||
invalidTime : 'Érvényes kezdő időpontot adjon meg'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/hu_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/hu_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'hu', {
|
||||
button : 'Youtube videó beillesztése',
|
||||
title : 'Youtube videó beillesztése',
|
||||
txtEmbed : 'Illessze be a beágyazott kódot',
|
||||
txtUrl : 'Illessze be a Youtube videó URL-jét',
|
||||
txtWidth : 'Szélesség',
|
||||
txtHeight : 'Magasság',
|
||||
txtStartAt : 'Kezdő időpont (ss vagy mm:ss vagy hh:mm:ss)',
|
||||
chkRelated : 'Ajánlott videók megjelenítése, amikor a videó befejeződik',
|
||||
chkPrivacy : 'Fokozott adatvédelmi mód engedélyezése',
|
||||
chkOlderCode : 'Régi beágyazott kód használata',
|
||||
chkAutoplay : 'Automatikus lejátszás',
|
||||
noCode : 'A beágyazott kód, vagy az URL megadása kötelező',
|
||||
invalidEmbed : 'A beágyazott kód érvénytelen',
|
||||
invalidUrl : 'A megadott URL érvénytelen',
|
||||
or : 'vagy',
|
||||
noWidth : 'A szélesség megadása kötelező',
|
||||
invalidWidth : 'Érvényes szélességet adjon meg',
|
||||
noHeight : 'A magasság megadása kötelező',
|
||||
invalidHeight : 'Érvényes magasságot adjon meg',
|
||||
invalidTime : 'Érvényes kezdő időpontot adjon meg',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/it.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/it.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'it', {
|
||||
button : 'Incorpora video Youtube',
|
||||
title : 'Incorpora video Youtube',
|
||||
txtEmbed : 'Incolla qui il codice di incorporamento',
|
||||
txtUrl : 'Incolla l\'URL del video Youtube',
|
||||
txtWidth : 'Larghezza',
|
||||
txtHeight : 'Altezza',
|
||||
chkRelated : 'Mostra i video suggeriti dopo il video',
|
||||
txtStartAt : 'Inizia a (ss o mm:ss o hh:mm:ss)',
|
||||
chkPrivacy : 'Abilita la protezione della privacy',
|
||||
chkOlderCode : 'Usa il vecchio codice di incorporamento',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'Devi inserire un codice di incorporamento o un URL',
|
||||
invalidEmbed : 'Il codice di incorporamento inserito non sembra valido',
|
||||
invalidUrl : 'L\'URL inserito non sembra valido',
|
||||
or : 'o',
|
||||
noWidth : 'Devi indicare la larghezza',
|
||||
invalidWidth : 'Indica una larghezza valida',
|
||||
noHeight : 'Devi indicare l\'altezza',
|
||||
invalidHeight : 'Indica un\'altezza valida',
|
||||
invalidTime : 'Indica un tempo di inizio valido'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/it_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/it_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'it', {
|
||||
button : 'Incorpora video Youtube',
|
||||
title : 'Incorpora video Youtube',
|
||||
txtEmbed : 'Incolla qui il codice di incorporamento',
|
||||
txtUrl : 'Incolla l\'URL del video Youtube',
|
||||
txtWidth : 'Larghezza',
|
||||
txtHeight : 'Altezza',
|
||||
chkRelated : 'Mostra i video suggeriti dopo il video',
|
||||
txtStartAt : 'Inizia a (ss o mm:ss o hh:mm:ss)',
|
||||
chkPrivacy : 'Abilita la protezione della privacy',
|
||||
chkOlderCode : 'Usa il vecchio codice di incorporamento',
|
||||
chkAutoplay : 'Autoplay',
|
||||
noCode : 'Devi inserire un codice di incorporamento o un URL',
|
||||
invalidEmbed : 'Il codice di incorporamento inserito non sembra valido',
|
||||
invalidUrl : 'L\'URL inserito non sembra valido',
|
||||
or : 'o',
|
||||
noWidth : 'Devi indicare la larghezza',
|
||||
invalidWidth : 'Indica una larghezza valida',
|
||||
noHeight : 'Devi indicare l\'altezza',
|
||||
invalidHeight : 'Indica un\'altezza valida',
|
||||
invalidTime : 'Indica un tempo di inizio valido',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/ja.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/ja.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'ja', {
|
||||
button : 'Youtube動画埋め込み',
|
||||
title : 'Youtube動画埋め込み',
|
||||
txtEmbed : '埋め込みコードを貼り付けてください',
|
||||
txtUrl : 'URLを貼り付けてください',
|
||||
txtWidth : '幅',
|
||||
txtHeight : '高さ',
|
||||
chkRelated : '動画が終わったら関連動画を表示する',
|
||||
txtStartAt : 'Start at',
|
||||
chkPrivacy : 'プライバシー強化モードを有効にする',
|
||||
chkOlderCode : '以前の埋め込みコードを使用する',
|
||||
chkAutoplay : '自動再生',
|
||||
noCode : '埋め込みコードまたはURLを入力してください',
|
||||
invalidEmbed : '不適切な埋め込みコードが入力されました',
|
||||
invalidUrl : '不適切なURLが入力されました',
|
||||
or : 'または',
|
||||
noWidth : '幅を指定してください',
|
||||
invalidWidth : '幅指定に誤りがあります',
|
||||
noHeight : '高さを指定してください',
|
||||
invalidHeight : '高さ指定に誤りがあります',
|
||||
invalidTime : 'Inform a valid start time'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/ja_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/ja_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'ja', {
|
||||
button : 'Youtube動画埋め込み',
|
||||
title : 'Youtube動画埋め込み',
|
||||
txtEmbed : '埋め込みコードを貼り付けてください',
|
||||
txtUrl : 'URLを貼り付けてください',
|
||||
txtWidth : '幅',
|
||||
txtHeight : '高さ',
|
||||
chkRelated : '動画が終わったら関連動画を表示する',
|
||||
txtStartAt : 'Start at',
|
||||
chkPrivacy : 'プライバシー強化モードを有効にする',
|
||||
chkOlderCode : '以前の埋め込みコードを使用する',
|
||||
chkAutoplay : '自動再生',
|
||||
noCode : '埋め込みコードまたはURLを入力してください',
|
||||
invalidEmbed : '不適切な埋め込みコードが入力されました',
|
||||
invalidUrl : '不適切なURLが入力されました',
|
||||
or : 'または',
|
||||
noWidth : '幅を指定してください',
|
||||
invalidWidth : '幅指定に誤りがあります',
|
||||
noHeight : '高さを指定してください',
|
||||
invalidHeight : '高さ指定に誤りがあります',
|
||||
invalidTime : 'Inform a valid start time',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/nb.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/nb.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'nb', {
|
||||
button : 'Bygg inn YouTube-video',
|
||||
title : 'Bygg inn YouTube-video',
|
||||
txtEmbed : 'Lim inn embed-kode her',
|
||||
txtUrl : 'Lim inn YouTube video-URL',
|
||||
txtWidth : 'Bredde',
|
||||
txtHeight : 'Høyde',
|
||||
chkRelated : 'Vis foreslåtte videoer når videoen er ferdig',
|
||||
txtStartAt : 'Start ved (ss eller mm:ss eller hh:mm:ss)',
|
||||
chkPrivacy : 'Bruk personverntilpasset modus',
|
||||
chkOlderCode : 'Bruk gammel embedkode',
|
||||
chkAutoplay: 'Spill automatisk',
|
||||
noCode : 'Du må legge inn en embed-kode eller URL',
|
||||
invalidEmbed : 'Emded-koden du la inn ser ikke ut til å være gyldig',
|
||||
invalidUrl : 'URLen du la inn ser ikke ut til å være gyldig',
|
||||
or : 'eller',
|
||||
noWidth : 'Du må legge inn bredde',
|
||||
invalidWidth : 'Legg inn en gyldig bredde',
|
||||
noHeight : 'Du må legge inn høyde',
|
||||
invalidHeight : 'Legg inn en gyldig høyde',
|
||||
invalidTime : 'Legg inn gyldig starttid',
|
||||
txtResponsive : 'Gjør responsiv (ignorer bredde og høyde, tilpass bredde på sida)'
|
||||
});
|
||||
21
libraries/ckeditor/plugins/youtube/lang/nl.js
Normal file
21
libraries/ckeditor/plugins/youtube/lang/nl.js
Normal file
@@ -0,0 +1,21 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'nl', {
|
||||
button : 'Youtube video insluiten',
|
||||
title : 'Youtube video insluiten',
|
||||
txtEmbed : 'Plak embedcode hier',
|
||||
txtUrl : 'Plak video URL',
|
||||
txtWidth : 'Breedte',
|
||||
txtHeight : 'Hoogte',
|
||||
chkRelated : 'Toon gesuggereerde video aan het einde van de video',
|
||||
txtStartAt : 'Starten op (ss of mm:ss of hh:mm:ss)',
|
||||
chkPrivacy : 'Privacy-enhanced mode inschakelen',
|
||||
chkOlderCode : 'Gebruik oude embedcode',
|
||||
chkAutoplay: 'Automatisch starten',
|
||||
noCode : 'U moet een embedcode of url ingeven',
|
||||
invalidEmbed : 'De ingegeven embedcode lijkt niet geldig',
|
||||
invalidUrl : 'De ingegeven url lijkt niet geldig',
|
||||
or : 'of',
|
||||
noWidth : 'U moet een breedte ingeven',
|
||||
invalidWidth : 'U moet een geldige breedte ingeven',
|
||||
noHeight : 'U moet een hoogte ingeven',
|
||||
invalidHeight : 'U moet een geldige starttijd ingeven'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/nl_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/nl_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'nl', {
|
||||
button : 'Youtube video insluiten',
|
||||
title : 'Youtube video insluiten',
|
||||
txtEmbed : 'Plak embedcode hier',
|
||||
txtUrl : 'Plak video URL',
|
||||
txtWidth : 'Breedte',
|
||||
txtHeight : 'Hoogte',
|
||||
chkRelated : 'Toon gesuggereerde video aan het einde van de video',
|
||||
txtStartAt : 'Starten op (ss of mm:ss of hh:mm:ss)',
|
||||
chkPrivacy : 'Privacy-enhanced mode inschakelen',
|
||||
chkOlderCode : 'Gebruik oude embedcode',
|
||||
chkAutoplay: 'Automatisch starten',
|
||||
noCode : 'U moet een embedcode of url ingeven',
|
||||
invalidEmbed : 'De ingegeven embedcode lijkt niet geldig',
|
||||
invalidUrl : 'De ingegeven url lijkt niet geldig',
|
||||
or : 'of',
|
||||
noWidth : 'U moet een breedte ingeven',
|
||||
invalidWidth : 'U moet een geldige breedte ingeven',
|
||||
noHeight : 'U moet een hoogte ingeven',
|
||||
invalidHeight : 'U moet een geldige starttijd ingeven',
|
||||
invalidTime : 'Inform a valid start time',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/nn.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/nn.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'nn', {
|
||||
button : 'Bygg inn YouTube-video',
|
||||
title : 'Bygg inn YouTube-video',
|
||||
txtEmbed : 'Lim inn embed-kode her',
|
||||
txtUrl : 'Lim inn YouTube video-URL',
|
||||
txtWidth : 'Breidde',
|
||||
txtHeight : 'Høgde',
|
||||
chkRelated : 'Vis foreslåtte videoar når videoen er ferdig',
|
||||
txtStartAt : 'Start ved (ss eller mm:ss eller hh:mm:ss)',
|
||||
chkPrivacy : 'Bruk personverntilpassa modus',
|
||||
chkOlderCode : 'Bruk gamal embedkode',
|
||||
chkAutoplay: 'Spel automatisk',
|
||||
noCode : 'Du må leggja inn ein embed-kode eller URL',
|
||||
invalidEmbed : 'Emded-koden du la inn ser ikkje ut til å vera gyldig',
|
||||
invalidUrl : 'URLen du la inn ser ikkje ut til å vera gyldig',
|
||||
or : 'eller',
|
||||
noWidth : 'Du må leggja inn breidde',
|
||||
invalidWidth : 'Legg inn ei gyldig breidde',
|
||||
noHeight : 'Du må leggja inn høgde',
|
||||
invalidHeight : 'Legg inn ei gyldig høgde',
|
||||
invalidTime : 'Legg inn gyldig starttid',
|
||||
txtResponsive : 'Gjer responsiv (ignorer breidde og høgde, tilpass breidda på sida)'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/pl.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/pl.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'pl', {
|
||||
button : 'Załacznik wideo z Youtube',
|
||||
title : 'Załacznik wideo z Youtube',
|
||||
txtEmbed : 'Wklej kod do umieszczenia',
|
||||
txtUrl : 'Wklej link URL do wideo',
|
||||
txtWidth : 'Szerokość',
|
||||
txtHeight : 'Wysokość',
|
||||
chkRelated : 'Pokaż sugerowane filmy po zakończeniu odtwarzania',
|
||||
txtStartAt : 'Rozpocznij od (ss lub mm:ss lub gg:mm:ss)',
|
||||
chkPrivacy : 'Włącz rozszerzony tryb prywatności',
|
||||
chkOlderCode : 'Użyj starego kodu',
|
||||
chkAutoplay: 'Autoodtwarzanie',
|
||||
noCode : 'Musisz wprowadzić kod lub link URL',
|
||||
invalidEmbed : 'Wprowadzony kod nie jest poprawny',
|
||||
invalidUrl : 'Wprowadzony link URL nie jest poprawny',
|
||||
or : 'lub',
|
||||
noWidth : 'Musisz wpisać szerokość',
|
||||
invalidWidth : 'Wprowadzona szerokość nie jest poprawna',
|
||||
noHeight : 'Musisz wprowadzić wysokość',
|
||||
invalidHeight : 'Wprowadzona wysokość nie jest poprawna',
|
||||
invalidTime : 'Musisz wprowadzić poprawny czas rozpoczęcia'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/pl_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/pl_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'pl', {
|
||||
button : 'Załącznik wideo z YouTube',
|
||||
title : 'Załącznik wideo z YouTube',
|
||||
txtEmbed : 'Wklej kod do umieszczenia',
|
||||
txtUrl : 'Wklej adres URL do wideo z YouTube',
|
||||
txtWidth : 'Szerokość',
|
||||
txtHeight : 'Wysokość',
|
||||
chkRelated : 'Pokaż sugerowane filmy po zakończeniu odtwarzania',
|
||||
txtStartAt : 'Rozpocznij od (ss lub mm:ss lub gg:mm:ss)',
|
||||
chkPrivacy : 'Włącz rozszerzony tryb prywatności',
|
||||
chkOlderCode : 'Użyj starego kodu',
|
||||
chkAutoplay: 'Autoodtwarzanie',
|
||||
noCode : 'Musisz wprowadzić kod lub adres URL',
|
||||
invalidEmbed : 'Wprowadzony kod nie jest poprawny',
|
||||
invalidUrl : 'Wprowadzony adres URL nie jest poprawny',
|
||||
or : 'lub',
|
||||
noWidth : 'Musisz wpisać szerokość',
|
||||
invalidWidth : 'Wprowadzona szerokość nie jest poprawna',
|
||||
noHeight : 'Musisz wprowadzić wysokość',
|
||||
invalidHeight : 'Wprowadzona wysokość nie jest poprawna',
|
||||
invalidTime : 'Musisz wprowadzić poprawny czas rozpoczęcia',
|
||||
txtResponsive : 'El. responsywny (ignoruj szerokość i wysokość, dopasuj do szerokości)'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/pt.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/pt.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'pt', {
|
||||
button : 'Inserir Vídeo do Youtube',
|
||||
title : 'Inserir Vídeo do Youtube',
|
||||
txtEmbed : 'Cole aqui o código embed de um vídeo do Youtube',
|
||||
txtUrl : 'Cole aqui uma URL de um vídeo do Youtube',
|
||||
txtWidth : 'Largura',
|
||||
txtHeight : 'Altura',
|
||||
chkRelated : 'Mostrar vídeos sugeridos ao final do vídeo',
|
||||
txtStartAt : 'Iniciar em (ss ou mm:ss ou hh:mm:ss)',
|
||||
chkPrivacy : 'Ativar o modo de privacidade aprimorada',
|
||||
chkOlderCode : 'Usar código de incorporação antigo',
|
||||
chkAutoplay : 'Reproduzir automaticamente',
|
||||
noCode : 'Você precisa informar um código embed ou uma URL',
|
||||
invalidEmbed : 'O código informado não parece ser válido',
|
||||
invalidUrl : 'A URL informada não parece ser válida',
|
||||
or : 'ou',
|
||||
noWidth : 'Você deve informar a largura do vídeo',
|
||||
invalidWidth : 'Informe uma largura válida',
|
||||
noHeight : 'Você deve informar a altura do vídeo',
|
||||
invalidHeight : 'Informe uma altura válida',
|
||||
invalidTime : 'O tempo informado é inválido'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/pt_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/pt_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'pt', {
|
||||
button : 'Inserir Vídeo do Youtube',
|
||||
title : 'Inserir Vídeo do Youtube',
|
||||
txtEmbed : 'Cole aqui o código embed de um vídeo do Youtube',
|
||||
txtUrl : 'Cole aqui uma URL de um vídeo do Youtube',
|
||||
txtWidth : 'Largura',
|
||||
txtHeight : 'Altura',
|
||||
chkRelated : 'Mostrar vídeos sugeridos ao final do vídeo',
|
||||
txtStartAt : 'Iniciar em (ss ou mm:ss ou hh:mm:ss)',
|
||||
chkPrivacy : 'Ativar o modo de privacidade aprimorada',
|
||||
chkOlderCode : 'Usar código de incorporação antigo',
|
||||
chkAutoplay : 'Reproduzir automaticamente',
|
||||
noCode : 'Você precisa informar um código embed ou uma URL',
|
||||
invalidEmbed : 'O código informado não parece ser válido',
|
||||
invalidUrl : 'A URL informada não parece ser válida',
|
||||
or : 'ou',
|
||||
noWidth : 'Você deve informar a largura do vídeo',
|
||||
invalidWidth : 'Informe uma largura válida',
|
||||
noHeight : 'Você deve informar a altura do vídeo',
|
||||
invalidHeight : 'Informe uma altura válida',
|
||||
invalidTime : 'O tempo informado é inválido',
|
||||
txtResponsive : 'Vídeo responsivo'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/ru.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/ru.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'ru', {
|
||||
button : 'Вставить YouTube видео',
|
||||
title : 'Вставить YouTube видео',
|
||||
txtEmbed : 'Вставьте HTML-код сюда',
|
||||
txtUrl : 'Вставьте адрес видео (URL)',
|
||||
txtWidth : 'Ширина',
|
||||
txtHeight : 'Высота',
|
||||
chkRelated : 'Показать похожие видео после завершения просмотра',
|
||||
txtStartAt : 'Начать с (сс или мм:сс или чч:мм:сс)',
|
||||
chkPrivacy : 'Включить режим повышенной конфиденциальности',
|
||||
chkOlderCode : 'Использовать старый код вставки',
|
||||
chkAutoplay: 'Автозапуск',
|
||||
noCode : 'Вы должны ввести HTML-код или адрес',
|
||||
invalidEmbed : 'Ваш HTML-код не похож на правильный',
|
||||
invalidUrl : 'Ваш адрес видео не похож на правильный',
|
||||
or : 'или',
|
||||
noWidth : 'Вы должны указать ширину',
|
||||
invalidWidth : 'Укажите правильную ширину',
|
||||
noHeight : 'Вы должны указать высоту',
|
||||
invalidHeight : 'Укажите правильную высоту',
|
||||
invalidTime : 'Укажите правильное время начала'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/ru_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/ru_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'ru', {
|
||||
button : 'Вставить YouTube видео',
|
||||
title : 'Вставить YouTube видео',
|
||||
txtEmbed : 'Вставьте HTML-код сюда',
|
||||
txtUrl : 'Вставьте адрес видео (URL)',
|
||||
txtWidth : 'Ширина',
|
||||
txtHeight : 'Высота',
|
||||
chkRelated : 'Показать похожие видео после завершения просмотра',
|
||||
txtStartAt : 'Начать с (сс или мм:сс или чч:мм:сс)',
|
||||
chkPrivacy : 'Включить режим повышенной конфиденциальности',
|
||||
chkOlderCode : 'Использовать старый код вставки',
|
||||
chkAutoplay: 'Автозапуск',
|
||||
noCode : 'Вы должны ввести HTML-код или адрес',
|
||||
invalidEmbed : 'Ваш HTML-код не похож на правильный',
|
||||
invalidUrl : 'Ваш адрес видео не похож на правильный',
|
||||
or : 'или',
|
||||
noWidth : 'Вы должны указать ширину',
|
||||
invalidWidth : 'Укажите правильную ширину',
|
||||
noHeight : 'Вы должны указать высоту',
|
||||
invalidHeight : 'Укажите правильную высоту',
|
||||
invalidTime : 'Укажите правильное время начала',
|
||||
txtResponsive : 'Растягиваемое видео'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/sk.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/sk.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'sk', {
|
||||
button : 'Vložiť YouTube video',
|
||||
title : 'Vložiť YouTube video',
|
||||
txtEmbed : 'Vložiť Youtube Embed Video kódu',
|
||||
txtUrl : 'Vložiť pomocou YouTube video URL',
|
||||
txtWidth : 'Šírka',
|
||||
txtHeight : 'Výška',
|
||||
chkRelated : 'Zobraziť odporúčané videá po prehratí',
|
||||
txtStartAt : 'Začať prehrávanie videa (ss alebo mm:ss alebo hh:mm:ss)',
|
||||
chkPrivacy : 'Povoliť pokročilý mód súkromia',
|
||||
chkOlderCode : 'Použiť starú metódu vkladania',
|
||||
chkAutoplay: 'Automatické prehrávanie',
|
||||
noCode : 'Musíte vložiť Youtube Embed kód alebo URL',
|
||||
invalidEmbed : 'Vložený kód nie je valídny',
|
||||
invalidUrl : 'Vložená URL nie je platná',
|
||||
or : 'alebo',
|
||||
noWidth : 'Prosím, zadajte šírku videa',
|
||||
invalidWidth : 'Zadajte valídnu šírku videa',
|
||||
noHeight : 'Prosím, zadajte výšku videa',
|
||||
invalidHeight : 'Zadajte valídnu výšku videa',
|
||||
invalidTime : 'Zadajte valídny formát začiatku prehrávania videa',
|
||||
txtResponsive : 'Prispôsobit rozmery videa rozmerom obrazovky (ignoruje šírku a výšku, prispôsobí sa šírke obrazovky)'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/tr.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/tr.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'tr', {
|
||||
button : 'Youtube Video Gömün (Embed)',
|
||||
title : 'Youtube Video',
|
||||
txtEmbed : 'Youtube gömülü kodu (embed) buraya yapıştırınız',
|
||||
txtUrl : 'Youtube linkinizi buraya yapıştırınız',
|
||||
txtWidth : 'Genişlik',
|
||||
txtHeight : 'Yükseklik',
|
||||
chkRelated : 'Önerilen videoları video bitiminde göster',
|
||||
txtStartAt : 'Video başlangıç anı (ss ya da dd:ss ya da ss:dd:ss)',
|
||||
chkPrivacy : 'Gizlilik modunu etkinleştir',
|
||||
chkOlderCode : 'Eski gömülü kodu (embed) kullan',
|
||||
chkAutoplay: 'Otomatik',
|
||||
noCode : 'Gömülü kod (embed) veya url yapıştırmak zorundasınız',
|
||||
invalidEmbed : 'Verdiğiniz gömülü kod (embed) ile video bulunamadı',
|
||||
invalidUrl : 'Verdiğiniz linkte video bulunamadı',
|
||||
or : 'ya da',
|
||||
noWidth : 'Genişliği belirtmek zorundasınız',
|
||||
invalidWidth : 'Bir genişlik belirtin',
|
||||
noHeight : 'Yükseliği belirtmek zorundasınız',
|
||||
invalidHeight : 'Yükseklik belirtin',
|
||||
invalidTime : 'Başlangıç anını doğru girin, örneğin: 13 (13. saniye) ya da 12:25 (12. dakika 25. saniye) ya da 01.25.33 (1 saat 25 dakika 33 saniye)'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/tr_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/tr_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'tr', {
|
||||
button : 'Youtube Video Gömün (Embed)',
|
||||
title : 'Youtube Video',
|
||||
txtEmbed : 'Youtube gömülü kodu (embed) buraya yapıştırınız',
|
||||
txtUrl : 'Youtube linkinizi buraya yapıştırınız',
|
||||
txtWidth : 'Genişlik',
|
||||
txtHeight : 'Yükseklik',
|
||||
chkRelated : 'Önerilen videoları video bitiminde göster',
|
||||
txtStartAt : 'Video başlangıç anı (ss ya da dd:ss ya da ss:dd:ss)',
|
||||
chkPrivacy : 'Gizlilik modunu etkinleştir',
|
||||
chkOlderCode : 'Eski gömülü kodu (embed) kullan',
|
||||
chkAutoplay: 'Otomatik',
|
||||
noCode : 'Gömülü kod (embed) veya url yapıştırmak zorundasınız',
|
||||
invalidEmbed : 'Verdiğiniz gömülü kod (embed) ile video bulunamadı',
|
||||
invalidUrl : 'Verdiğiniz linkte video bulunamadı',
|
||||
or : 'ya da',
|
||||
noWidth : 'Genişliği belirtmek zorundasınız',
|
||||
invalidWidth : 'Bir genişlik belirtin',
|
||||
noHeight : 'Yükseliği belirtmek zorundasınız',
|
||||
invalidHeight : 'Yükseklik belirtin',
|
||||
invalidTime : 'Başlangıç anını doğru girin, örneğin: 13 (13. saniye) ya da 12:25 (12. dakika 25. saniye) ya da 01.25.33 (1 saat 25 dakika 33 saniye)',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
22
libraries/ckeditor/plugins/youtube/lang/vi.js
Normal file
22
libraries/ckeditor/plugins/youtube/lang/vi.js
Normal file
@@ -0,0 +1,22 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'vi', {
|
||||
button : 'Embed Youtube Video',
|
||||
title : 'Nhúng Video Youtube',
|
||||
txtEmbed : 'Dãn mã nhúng Embed vào đây',
|
||||
txtUrl : 'Dãn đường dẫn video Youtube',
|
||||
txtWidth : 'Rộng',
|
||||
txtHeight : 'Cao',
|
||||
chkRelated : 'Hiển thị các video được đề xuất khi video kết thúc',
|
||||
txtStartAt : 'Bắt đầu (ss hoặc mm:ss hoặc hh:mm:ss)',
|
||||
chkPrivacy : 'Kích hoạt chế độ bảo mật nâng cao',
|
||||
chkOlderCode : 'Sử dụng mã nhúng cũ',
|
||||
chkAutoplay: 'Tự động chạy video',
|
||||
noCode : 'Bạn phải nhập mã nhúng hoặc URL',
|
||||
invalidEmbed : 'Mã nhúng bạn đã nhập không đúng',
|
||||
invalidUrl : 'URL bạn đã nhập không đúng',
|
||||
or : 'hoặc',
|
||||
noWidth : 'Bạn phải chiều rộng',
|
||||
invalidWidth : 'Chiều rộng hợp lệ',
|
||||
noHeight : 'Bạn phải chiều cao',
|
||||
invalidHeight : 'Chiều cao hợp lệ',
|
||||
invalidTime : 'Thời gian bắt đầu không đúng'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/vi_1.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/vi_1.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'vi', {
|
||||
button : 'Embed Youtube Video',
|
||||
title : 'Nhúng Video Youtube',
|
||||
txtEmbed : 'Dãn mã nhúng Embed vào đây',
|
||||
txtUrl : 'Dãn đường dẫn video Youtube',
|
||||
txtWidth : 'Rộng',
|
||||
txtHeight : 'Cao',
|
||||
chkRelated : 'Hiển thị các video được đề xuất khi video kết thúc',
|
||||
txtStartAt : 'Bắt đầu (ss hoặc mm:ss hoặc hh:mm:ss)',
|
||||
chkPrivacy : 'Kích hoạt chế độ bảo mật nâng cao',
|
||||
chkOlderCode : 'Sử dụng mã nhúng cũ',
|
||||
chkAutoplay: 'Tự động chạy video',
|
||||
noCode : 'Bạn phải nhập mã nhúng hoặc URL',
|
||||
invalidEmbed : 'Mã nhúng bạn đã nhập không đúng',
|
||||
invalidUrl : 'URL bạn đã nhập không đúng',
|
||||
or : 'hoặc',
|
||||
noWidth : 'Bạn phải chiều rộng',
|
||||
invalidWidth : 'Chiều rộng hợp lệ',
|
||||
noHeight : 'Bạn phải chiều cao',
|
||||
invalidHeight : 'Chiều cao hợp lệ',
|
||||
invalidTime : 'Thời gian bắt đầu không đúng',
|
||||
txtResponsive : 'Responsive video'
|
||||
});
|
||||
23
libraries/ckeditor/plugins/youtube/lang/zh.js
Normal file
23
libraries/ckeditor/plugins/youtube/lang/zh.js
Normal file
@@ -0,0 +1,23 @@
|
||||
CKEDITOR.plugins.setLang('youtube', 'zh', {
|
||||
button: '嵌入 Youtube 影片',
|
||||
title: '嵌入 Youtube 影片',
|
||||
txtEmbed: '貼上嵌入碼',
|
||||
txtUrl: '貼上 Youtube 影片 URL',
|
||||
txtWidth: '寬',
|
||||
txtHeight: '高',
|
||||
txtResponsive: '使用自適應縮放模式 (忽略設定的長寬, 以寬為基準縮放)',
|
||||
chkRelated: '影片結束時顯示建議影片',
|
||||
txtStartAt: '開始時間 (ss or mm:ss or hh:mm:ss)',
|
||||
chkPrivacy: '啟用加強隱私模式',
|
||||
chkOlderCode: '使用舊的嵌入碼',
|
||||
chkAutoplay: '自動播放',
|
||||
noCode: '必須輸入嵌入碼',
|
||||
invalidEmbed: '錯誤的嵌入碼',
|
||||
invalidUrl: '錯誤的URL',
|
||||
or: '或',
|
||||
noWidth: '必須設定寬',
|
||||
invalidWidth: '寬設定錯誤',
|
||||
noHeight: '必須設定高',
|
||||
invalidHeight: '高設定錯誤',
|
||||
invalidTime: '開始時間設定錯誤'
|
||||
});
|
||||
364
libraries/ckeditor/plugins/youtube/plugin.js
Normal file
364
libraries/ckeditor/plugins/youtube/plugin.js
Normal file
@@ -0,0 +1,364 @@
|
||||
/*
|
||||
* Youtube Embed Plugin
|
||||
*
|
||||
* @author Jonnas Fonini <contato@fonini.net>
|
||||
* @version 1.0.10
|
||||
*/
|
||||
( function() {
|
||||
CKEDITOR.plugins.add( 'youtube',
|
||||
{
|
||||
lang: [ 'en', 'pt', 'ja', 'hu', 'it', 'fr', 'tr', 'ru', 'de', 'ar', 'nl', 'pl', 'vi'],
|
||||
init: function( editor )
|
||||
{
|
||||
editor.addCommand( 'youtube', new CKEDITOR.dialogCommand( 'youtube', {
|
||||
allowedContent: 'iframe[!width,!height,!src,!frameborder,!allowfullscreen]; object param[*]'
|
||||
}));
|
||||
|
||||
editor.ui.addButton( 'Youtube',
|
||||
{
|
||||
label : editor.lang.youtube.button,
|
||||
toolbar : 'insert',
|
||||
command : 'youtube',
|
||||
icon : this.path + 'images/icon.png'
|
||||
});
|
||||
|
||||
CKEDITOR.dialog.add( 'youtube', function ( instance )
|
||||
{
|
||||
var video;
|
||||
|
||||
return {
|
||||
title : editor.lang.youtube.title,
|
||||
minWidth : 500,
|
||||
minHeight : 200,
|
||||
contents :
|
||||
[{
|
||||
id : 'youtubePlugin',
|
||||
expand : true,
|
||||
elements :
|
||||
[{
|
||||
id : 'txtEmbed',
|
||||
type : 'textarea',
|
||||
label : editor.lang.youtube.txtEmbed,
|
||||
autofocus : 'autofocus',
|
||||
onChange : function ( api )
|
||||
{
|
||||
handleEmbedChange( this, api );
|
||||
},
|
||||
onKeyUp : function ( api )
|
||||
{
|
||||
handleEmbedChange( this, api );
|
||||
},
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.isEnabled() )
|
||||
{
|
||||
if ( !this.getValue() )
|
||||
{
|
||||
alert( editor.lang.youtube.noCode );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
if ( this.getValue().length === 0 || this.getValue().indexOf( '//' ) === -1 )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidEmbed );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type : 'html',
|
||||
html : editor.lang.youtube.or + '<hr>'
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '70%', '15%', '15%' ],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'txtUrl',
|
||||
type : 'text',
|
||||
label : editor.lang.youtube.txtUrl,
|
||||
onChange : function ( api )
|
||||
{
|
||||
handleLinkChange( this, api );
|
||||
},
|
||||
onKeyUp : function ( api )
|
||||
{
|
||||
handleLinkChange( this, api );
|
||||
},
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.isEnabled() )
|
||||
{
|
||||
if ( !this.getValue() )
|
||||
{
|
||||
alert( editor.lang.youtube.noCode );
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
video = ytVidId(this.getValue());
|
||||
|
||||
if ( this.getValue().length === 0 || video === false)
|
||||
{
|
||||
alert( editor.lang.youtube.invalidUrl );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type : 'text',
|
||||
id : 'txtWidth',
|
||||
width : '60px',
|
||||
label : editor.lang.youtube.txtWidth,
|
||||
'default' : editor.config.youtube_width != null ? editor.config.youtube_width : '640',
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.getValue() )
|
||||
{
|
||||
var width = parseInt ( this.getValue() ) || 0;
|
||||
|
||||
if ( width === 0 )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidWidth );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert( editor.lang.youtube.noWidth );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type : 'text',
|
||||
id : 'txtHeight',
|
||||
width : '60px',
|
||||
label : editor.lang.youtube.txtHeight,
|
||||
'default' : editor.config.youtube_height != null ? editor.config.youtube_height : '360',
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.getValue() )
|
||||
{
|
||||
var height = parseInt ( this.getValue() ) || 0;
|
||||
|
||||
if ( height === 0 )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidHeight );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert( editor.lang.youtube.noHeight );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '55%', '45%' ],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'chkRelated',
|
||||
type : 'checkbox',
|
||||
'default' : editor.config.youtube_related != null ? editor.config.youtube_related : true,
|
||||
label : editor.lang.youtube.chkRelated
|
||||
},
|
||||
{
|
||||
id : 'chkOlderCode',
|
||||
type : 'checkbox',
|
||||
'default' : editor.config.youtube_older != null ? editor.config.youtube_older : false,
|
||||
label : editor.lang.youtube.chkOlderCode
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '55%', '45%' ],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'chkPrivacy',
|
||||
type : 'checkbox',
|
||||
label : editor.lang.youtube.chkPrivacy,
|
||||
'default' : editor.config.youtube_privacy != null ? editor.config.youtube_privacy : false
|
||||
},
|
||||
{
|
||||
id : 'chkAutoplay',
|
||||
type : 'checkbox',
|
||||
'default' : editor.config.youtube_autoplay != null ? editor.config.youtube_autoplay : false,
|
||||
label : editor.lang.youtube.chkAutoplay
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '45%', '55%'],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'txtStartAt',
|
||||
type : 'text',
|
||||
label : editor.lang.youtube.txtStartAt,
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.getValue() )
|
||||
{
|
||||
var str = this.getValue();
|
||||
|
||||
if ( !/^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/i.test( str ) )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidTime );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'empty',
|
||||
type: 'html',
|
||||
html: ''
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
onOk: function()
|
||||
{
|
||||
var content = '';
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'txtEmbed' ).isEnabled() )
|
||||
{
|
||||
content = this.getValueOf( 'youtubePlugin', 'txtEmbed' );
|
||||
}
|
||||
else {
|
||||
var url = '//', params = [], startSecs;
|
||||
var width = this.getValueOf( 'youtubePlugin', 'txtWidth' );
|
||||
var height = this.getValueOf( 'youtubePlugin', 'txtHeight' );
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkPrivacy' ).getValue() === true )
|
||||
{
|
||||
url += 'www.youtube-nocookie.com/';
|
||||
}
|
||||
else {
|
||||
url += 'www.youtube.com/';
|
||||
}
|
||||
|
||||
url += 'embed/' + video;
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkRelated' ).getValue() === false )
|
||||
{
|
||||
params.push('rel=0');
|
||||
}
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkAutoplay' ).getValue() === true )
|
||||
{
|
||||
params.push('autoplay=1');
|
||||
}
|
||||
|
||||
startSecs = this.getValueOf( 'youtubePlugin', 'txtStartAt' );
|
||||
if ( startSecs ){
|
||||
var seconds = hmsToSeconds( startSecs );
|
||||
|
||||
params.push('start=' + seconds);
|
||||
}
|
||||
|
||||
if ( params.length > 0 )
|
||||
{
|
||||
url = url + '?' + params.join( '&' );
|
||||
}
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkOlderCode' ).getValue() === true )
|
||||
{
|
||||
url = url.replace('embed/', 'v/');
|
||||
url = url.replace(/&/g, '&');
|
||||
|
||||
if ( url.indexOf('?')== -1 )
|
||||
{
|
||||
url += '?';
|
||||
}
|
||||
else {
|
||||
url += '&';
|
||||
}
|
||||
url += 'hl=pt_BR&version=3';
|
||||
|
||||
content = '<object width="' + width + '" height="' + height + '">';
|
||||
content += '<param name="movie" value="' + url + '"></param>';
|
||||
content += '<param name="allowFullScreen" value="true"></param>';
|
||||
content += '<param name="allowscriptaccess" value="always"></param>';
|
||||
content += '<embed src="' + url + '" type="application/x-shockwave-flash" ';
|
||||
content += 'width="' + width + '" height="' + height + '" allowscriptaccess="always" ';
|
||||
content += 'allowfullscreen="true"></embed>';
|
||||
content += '</object>';
|
||||
}
|
||||
else {
|
||||
content = '<iframe width="' + width + '" height="' + height + '" src="' + url + '" ';
|
||||
content += 'frameborder="0" allowfullscreen></iframe>';
|
||||
}
|
||||
}
|
||||
|
||||
var instance = this.getParentEditor();
|
||||
instance.insertHtml( content );
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
function handleLinkChange( el, api )
|
||||
{
|
||||
if ( el.getValue().length > 0 )
|
||||
{
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtEmbed' ).disable();
|
||||
}
|
||||
else {
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtEmbed' ).enable();
|
||||
}
|
||||
}
|
||||
|
||||
function handleEmbedChange( el, api )
|
||||
{
|
||||
if ( el.getValue().length > 0 )
|
||||
{
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtUrl' ).disable();
|
||||
}
|
||||
else {
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtUrl' ).enable();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* JavaScript function to match (and return) the video Id
|
||||
* of any valid Youtube Url, given as input string.
|
||||
* @author: Stephan Schmitz <eyecatchup@gmail.com>
|
||||
* @url: http://stackoverflow.com/a/10315969/624466
|
||||
*/
|
||||
function ytVidId( url )
|
||||
{
|
||||
var p = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;
|
||||
return ( url.match( p ) ) ? RegExp.$1 : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts time in hms format to seconds only
|
||||
*/
|
||||
function hmsToSeconds( time )
|
||||
{
|
||||
var arr = time.split(':'), s = 0, m = 1;
|
||||
|
||||
while (arr.length > 0)
|
||||
{
|
||||
s += m * parseInt(arr.pop(), 10);
|
||||
m *= 60;
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
388
libraries/ckeditor/plugins/youtube/plugin_1.js
Normal file
388
libraries/ckeditor/plugins/youtube/plugin_1.js
Normal file
@@ -0,0 +1,388 @@
|
||||
/*
|
||||
* Youtube Embed Plugin
|
||||
*
|
||||
* @author Jonnas Fonini <contato@fonini.net>
|
||||
* @version 2.0.9
|
||||
*/
|
||||
( function() {
|
||||
CKEDITOR.plugins.add( 'youtube',
|
||||
{
|
||||
lang: [ 'en', 'pt', 'ja', 'hu', 'it', 'fr', 'tr', 'ru', 'de', 'ar', 'nl', 'pl', 'vi', 'zh', 'el', 'he', 'es', 'nb', 'nn', 'fi', 'et', 'sk', 'cs'],
|
||||
init: function( editor )
|
||||
{
|
||||
editor.addCommand( 'youtube', new CKEDITOR.dialogCommand( 'youtube', {
|
||||
allowedContent: 'div{*}; iframe{*}[!width,!height,!src,!frameborder,!allowfullscreen]; object param[*]'
|
||||
}));
|
||||
|
||||
editor.ui.addButton( 'Youtube',
|
||||
{
|
||||
label : editor.lang.youtube.button,
|
||||
toolbar : 'insert',
|
||||
command : 'youtube',
|
||||
icon : this.path + 'images/icon.png'
|
||||
});
|
||||
|
||||
CKEDITOR.dialog.add( 'youtube', function ( instance )
|
||||
{
|
||||
var video;
|
||||
|
||||
return {
|
||||
title : editor.lang.youtube.title,
|
||||
minWidth : 500,
|
||||
minHeight : 200,
|
||||
contents :
|
||||
[{
|
||||
id : 'youtubePlugin',
|
||||
expand : true,
|
||||
elements :
|
||||
[{
|
||||
id : 'txtEmbed',
|
||||
type : 'textarea',
|
||||
label : editor.lang.youtube.txtEmbed,
|
||||
autofocus : 'autofocus',
|
||||
onChange : function ( api )
|
||||
{
|
||||
handleEmbedChange( this, api );
|
||||
},
|
||||
onKeyUp : function ( api )
|
||||
{
|
||||
handleEmbedChange( this, api );
|
||||
},
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.isEnabled() )
|
||||
{
|
||||
if ( !this.getValue() )
|
||||
{
|
||||
alert( editor.lang.youtube.noCode );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
if ( this.getValue().length === 0 || this.getValue().indexOf( '//' ) === -1 )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidEmbed );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type : 'html',
|
||||
html : editor.lang.youtube.or + '<hr>'
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '70%', '15%', '15%' ],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'txtUrl',
|
||||
type : 'text',
|
||||
label : editor.lang.youtube.txtUrl,
|
||||
onChange : function ( api )
|
||||
{
|
||||
handleLinkChange( this, api );
|
||||
},
|
||||
onKeyUp : function ( api )
|
||||
{
|
||||
handleLinkChange( this, api );
|
||||
},
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.isEnabled() )
|
||||
{
|
||||
if ( !this.getValue() )
|
||||
{
|
||||
alert( editor.lang.youtube.noCode );
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
video = ytVidId(this.getValue());
|
||||
|
||||
if ( this.getValue().length === 0 || video === false)
|
||||
{
|
||||
alert( editor.lang.youtube.invalidUrl );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type : 'text',
|
||||
id : 'txtWidth',
|
||||
width : '60px',
|
||||
label : editor.lang.youtube.txtWidth,
|
||||
'default' : editor.config.youtube_width != null ? editor.config.youtube_width : '640',
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.getValue() )
|
||||
{
|
||||
var width = parseInt ( this.getValue() ) || 0;
|
||||
|
||||
if ( width === 0 )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidWidth );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert( editor.lang.youtube.noWidth );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type : 'text',
|
||||
id : 'txtHeight',
|
||||
width : '60px',
|
||||
label : editor.lang.youtube.txtHeight,
|
||||
'default' : editor.config.youtube_height != null ? editor.config.youtube_height : '360',
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.getValue() )
|
||||
{
|
||||
var height = parseInt ( this.getValue() ) || 0;
|
||||
|
||||
if ( height === 0 )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidHeight );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert( editor.lang.youtube.noHeight );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '100%' ],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'chkResponsive',
|
||||
type : 'checkbox',
|
||||
label : editor.lang.youtube.txtResponsive,
|
||||
'default' : editor.config.youtube_responsive != null ? editor.config.youtube_responsive : false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '55%', '45%' ],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'chkRelated',
|
||||
type : 'checkbox',
|
||||
'default' : editor.config.youtube_related != null ? editor.config.youtube_related : true,
|
||||
label : editor.lang.youtube.chkRelated
|
||||
},
|
||||
{
|
||||
id : 'chkOlderCode',
|
||||
type : 'checkbox',
|
||||
'default' : editor.config.youtube_older != null ? editor.config.youtube_older : false,
|
||||
label : editor.lang.youtube.chkOlderCode
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '55%', '45%' ],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'chkPrivacy',
|
||||
type : 'checkbox',
|
||||
label : editor.lang.youtube.chkPrivacy,
|
||||
'default' : editor.config.youtube_privacy != null ? editor.config.youtube_privacy : false
|
||||
},
|
||||
{
|
||||
id : 'chkAutoplay',
|
||||
type : 'checkbox',
|
||||
'default' : editor.config.youtube_autoplay != null ? editor.config.youtube_autoplay : false,
|
||||
label : editor.lang.youtube.chkAutoplay
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type : 'hbox',
|
||||
widths : [ '55%', '45%'],
|
||||
children :
|
||||
[
|
||||
{
|
||||
id : 'txtStartAt',
|
||||
type : 'text',
|
||||
label : editor.lang.youtube.txtStartAt,
|
||||
validate : function ()
|
||||
{
|
||||
if ( this.getValue() )
|
||||
{
|
||||
var str = this.getValue();
|
||||
|
||||
if ( !/^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/i.test( str ) )
|
||||
{
|
||||
alert( editor.lang.youtube.invalidTime );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'empty',
|
||||
type: 'html',
|
||||
html: ''
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
onOk: function()
|
||||
{
|
||||
var content = '';
|
||||
var responsiveStyle='';
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'txtEmbed' ).isEnabled() )
|
||||
{
|
||||
content = this.getValueOf( 'youtubePlugin', 'txtEmbed' );
|
||||
}
|
||||
else {
|
||||
var url = '//', params = [], startSecs;
|
||||
var width = this.getValueOf( 'youtubePlugin', 'txtWidth' );
|
||||
var height = this.getValueOf( 'youtubePlugin', 'txtHeight' );
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkPrivacy' ).getValue() === true )
|
||||
{
|
||||
url += 'www.youtube-nocookie.com/';
|
||||
}
|
||||
else {
|
||||
url += 'www.youtube.com/';
|
||||
}
|
||||
|
||||
url += 'embed/' + video;
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkRelated' ).getValue() === false )
|
||||
{
|
||||
params.push('rel=0');
|
||||
}
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkAutoplay' ).getValue() === true )
|
||||
{
|
||||
params.push('autoplay=1');
|
||||
}
|
||||
|
||||
startSecs = this.getValueOf( 'youtubePlugin', 'txtStartAt' );
|
||||
if ( startSecs ){
|
||||
var seconds = hmsToSeconds( startSecs );
|
||||
|
||||
params.push('start=' + seconds);
|
||||
}
|
||||
|
||||
if ( params.length > 0 )
|
||||
{
|
||||
url = url + '?' + params.join( '&' );
|
||||
}
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkResponsive').getValue() === true ) {
|
||||
content += '<div class="youtube-embed-wrapper" style="position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden;">';
|
||||
responsiveStyle = 'style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;"';
|
||||
}
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkOlderCode' ).getValue() === true )
|
||||
{
|
||||
url = url.replace('embed/', 'v/');
|
||||
url = url.replace(/&/g, '&');
|
||||
|
||||
if ( url.indexOf('?') === -1 )
|
||||
{
|
||||
url += '?';
|
||||
}
|
||||
else {
|
||||
url += '&';
|
||||
}
|
||||
url += 'hl=' + (this.getParentEditor().config.language ? this.getParentEditor().config.language : 'en') + '&version=3';
|
||||
|
||||
content += '<object width="' + width + '" height="' + height + '" ' + responsiveStyle + '>';
|
||||
content += '<param name="movie" value="' + url + '"></param>';
|
||||
content += '<param name="allowFullScreen" value="true"></param>';
|
||||
content += '<param name="allowscriptaccess" value="always"></param>';
|
||||
content += '<embed src="' + url + '" type="application/x-shockwave-flash" ';
|
||||
content += 'width="' + width + '" height="' + height + '" '+ responsiveStyle + ' allowscriptaccess="always" ';
|
||||
content += 'allowfullscreen="true"></embed>';
|
||||
content += '</object>';
|
||||
}
|
||||
else {
|
||||
content += '<iframe width="' + width + '" height="' + height + '" src="' + url + '" ' + responsiveStyle;
|
||||
content += 'frameborder="0" allowfullscreen></iframe>';
|
||||
}
|
||||
|
||||
if ( this.getContentElement( 'youtubePlugin', 'chkResponsive').getValue() === true ) {
|
||||
content += '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
var element = CKEDITOR.dom.element.createFromHtml( content );
|
||||
var instance = this.getParentEditor();
|
||||
instance.insertElement(element);
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
function handleLinkChange( el, api )
|
||||
{
|
||||
if ( el.getValue().length > 0 )
|
||||
{
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtEmbed' ).disable();
|
||||
}
|
||||
else {
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtEmbed' ).enable();
|
||||
}
|
||||
}
|
||||
|
||||
function handleEmbedChange( el, api )
|
||||
{
|
||||
if ( el.getValue().length > 0 )
|
||||
{
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtUrl' ).disable();
|
||||
}
|
||||
else {
|
||||
el.getDialog().getContentElement( 'youtubePlugin', 'txtUrl' ).enable();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* JavaScript function to match (and return) the video Id
|
||||
* of any valid Youtube Url, given as input string.
|
||||
* @author: Stephan Schmitz <eyecatchup@gmail.com>
|
||||
* @url: http://stackoverflow.com/a/10315969/624466
|
||||
*/
|
||||
function ytVidId( url )
|
||||
{
|
||||
var p = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;
|
||||
return ( url.match( p ) ) ? RegExp.$1 : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts time in hms format to seconds only
|
||||
*/
|
||||
function hmsToSeconds( time )
|
||||
{
|
||||
var arr = time.split(':'), s = 0, m = 1;
|
||||
|
||||
while (arr.length > 0)
|
||||
{
|
||||
s += m * parseInt(arr.pop(), 10);
|
||||
m *= 60;
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
Reference in New Issue
Block a user