Kaynağa Gözat

编辑器支持音频发布

tags/6.2.8
tianya 1 yıl önce
ebeveyn
işleme
d78da4c1d0
22 değiştirilmiş dosya ile 323 ekleme ve 276 silme
  1. +152
    -0
      src/static/ckeditor/plugins/html5audio/dialogs/html5audio.js
  2. BIN
      src/static/ckeditor/plugins/html5audio/icons/hidpi/html5audio.png
  3. BIN
      src/static/ckeditor/plugins/html5audio/icons/html5audio.png
  4. +15
    -0
      src/static/ckeditor/plugins/html5audio/lang/en.js
  5. +15
    -0
      src/static/ckeditor/plugins/html5audio/lang/zh-cn.js
  6. +139
    -0
      src/static/ckeditor/plugins/html5audio/plugin.js
  7. +0
    -20
      src/static/ckeditor/plugins/html5video/lang/bg.js
  8. +0
    -20
      src/static/ckeditor/plugins/html5video/lang/ca.js
  9. +0
    -17
      src/static/ckeditor/plugins/html5video/lang/de.js
  10. +0
    -18
      src/static/ckeditor/plugins/html5video/lang/es.js
  11. +0
    -17
      src/static/ckeditor/plugins/html5video/lang/eu.js
  12. +0
    -18
      src/static/ckeditor/plugins/html5video/lang/fa.js
  13. +0
    -17
      src/static/ckeditor/plugins/html5video/lang/fr.js
  14. +0
    -18
      src/static/ckeditor/plugins/html5video/lang/he.js
  15. +0
    -20
      src/static/ckeditor/plugins/html5video/lang/ko.js
  16. +0
    -18
      src/static/ckeditor/plugins/html5video/lang/pl.js
  17. +0
    -18
      src/static/ckeditor/plugins/html5video/lang/pt-br.js
  18. +0
    -18
      src/static/ckeditor/plugins/html5video/lang/pt.js
  19. +0
    -21
      src/static/ckeditor/plugins/html5video/lang/ru.js
  20. +0
    -17
      src/static/ckeditor/plugins/html5video/lang/uk.js
  21. +0
    -17
      src/static/ckeditor/plugins/html5video/lang/uz.js
  22. +2
    -2
      src/system/inc/inc_fun_funAdmin.php

+ 152
- 0
src/static/ckeditor/plugins/html5audio/dialogs/html5audio.js Dosyayı Görüntüle

@@ -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() );
}
} ]
} ]
} ]
} ]
};
} );

BIN
src/static/ckeditor/plugins/html5audio/icons/hidpi/html5audio.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 32  |  Yükseklik: 32  |  Boyut: 333B

BIN
src/static/ckeditor/plugins/html5audio/icons/html5audio.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 16  |  Yükseklik: 16  |  Boyut: 245B

+ 15
- 0
src/static/ckeditor/plugins/html5audio/lang/en.js Dosyayı Görüntüle

@@ -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'
} );

+ 15
- 0
src/static/ckeditor/plugins/html5audio/lang/zh-cn.js Dosyayı Görüntüle

@@ -0,0 +1,15 @@
CKEDITOR.plugins.setLang( 'html5audio', 'zh-cn', {
button: '插入HTML5音频',
title: 'HTML5 音频',
infoLabel: '音频信息',
urlMissing: '音频URL',
audioProperties: '音频属性',
upload: '上传',
btnUpload: '上传到服务器',
advanced: '高级',
autoplay: '自动播放?',
allowdownload: '允许下载?',
advisorytitle: '提示语',
yes: '是',
no: '否'
} );

+ 139
- 0
src/static/ckeditor/plugins/html5audio/plugin.js Dosyayı Görüntüle

@@ -0,0 +1,139 @@
CKEDITOR.plugins.add( 'html5audio', {
requires: 'widget',
lang: 'bg,ca,de,de-ch,el,en,eu,es,fr,ru,uk,uz,zh-cn,fa,pl',
icons: 'html5audio',
hidpi: true,
init: function( editor ) {
editor.widgets.add( 'html5audio', {
button: editor.lang.html5audio.button,
template: '<div class="ckeditor-html5-audio"></div>', // We add the audio element when needed in the data function, to avoid having an undefined src attribute.
// See issue #9 on github: https://github.com/iametza/ckeditor-html5-audio/issues/9
editables: {},
/*
* Allowed content rules (http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules):
* - div-s with text-align,float,margin-left,margin-right inline style rules and required ckeditor-html5-audio class.
* - audio tags with src and controls attributes.
*/
allowedContent: 'div(!ckeditor-html5-audio){text-align,float,margin-left,margin-right}; audio[src,controls,controlslist,autoplay];',
requiredContent: 'div(ckeditor-html5-audio); audio[src,controls];',
upcast: function( element ) {
return element.name === 'div' && element.hasClass( 'ckeditor-html5-audio' );
},
dialog: 'html5audio',
init: function() {
var audioElement = this.element.findOne( 'audio' );
var src = '';
var autoplay = '';
var align = this.element.getStyle( 'text-align' );
var allowdownload = false;
var advisorytitle = '';

// If there's a child (the audio element)
if ( audioElement ) {
// get it's attributes.
src = audioElement.getAttribute( 'src' );
autoplay = audioElement.getAttribute( 'autoplay' );
allowdownload = !audioElement.getAttribute( 'controlslist' );
advisorytitle = audioElement.getAttribute( 'title' );
}

if ( src ) {
this.setData( 'src', src );

if ( align ) {
this.setData( 'align', align );
} else {
this.setData( 'align', 'none' );
}

if ( autoplay ) {
this.setData( 'autoplay', 'yes' );
}

if ( allowdownload ) {
this.setData( 'allowdownload', 'yes' );
}

if ( advisorytitle ) {
this.setData( 'advisorytitle', advisorytitle );
}
}
},
data: function() {
var audioElement = this.element.findOne( 'audio' );
// If there is an audio source
if ( this.data.src ) {
// and there isn't a child (the audio element)
if ( !audioElement ) {
// Create a new <audio> element.
audioElement = new CKEDITOR.dom.element( 'audio' );
// Set the controls attribute.
audioElement.setAttribute( 'controls', 'controls' );
// Append it to the container of the plugin.
this.element.append( audioElement );
}
audioElement.setAttribute( 'src', this.data.src );
}

this.element.removeStyle( 'float' );
this.element.removeStyle( 'margin-left' );
this.element.removeStyle( 'margin-right' );

if ( this.data.align === 'none' ) {
this.element.removeStyle( 'text-align' );
} else {
this.element.setStyle( 'text-align', this.data.align );
}

if ( this.data.align === 'left' ) {
this.element.setStyle( 'float', this.data.align );
this.element.setStyle( 'margin-right', '10px' );
} else if ( this.data.align === 'right' ) {
this.element.setStyle( 'float', this.data.align );
this.element.setStyle( 'margin-left', '10px' );
}

if ( audioElement ) {
if ( this.data.autoplay === 'yes' ) {
audioElement.setAttribute( 'autoplay', 'autoplay' );
} else {
audioElement.removeAttribute( 'autoplay' );
}

if ( this.data.allowdownload === 'yes' ) {
audioElement.removeAttribute( 'controlslist' );
} else {
audioElement.setAttribute( 'controlslist', 'nodownload' );
}

if ( this.data.advisorytitle ) {
audioElement.setAttribute( 'title', this.data.advisorytitle );
} else {
audioElement.removeAttribute( 'title' );
}
}
}
} );

if ( editor.contextMenu ) {
editor.addMenuGroup( 'html5audioGroup' );
editor.addMenuItem( 'html5audioPropertiesItem', {
label: editor.lang.html5audio.audioProperties,
icon: 'html5audio',
command: 'html5audio',
group: 'html5audioGroup'
});

editor.contextMenu.addListener( function( element ) {
var audioElement = element && element.findOne( 'audio' );
if ( audioElement &&
audioElement.hasClass &&
audioElement.hasClass( 'ckeditor-html5-audio' ) ) {
return { html5audioPropertiesItem: CKEDITOR.TRISTATE_OFF };
}
});
}

CKEDITOR.dialog.add( 'html5audio', this.path + 'dialogs/html5audio.js' );
}
} );

+ 0
- 20
src/static/ckeditor/plugins/html5video/lang/bg.js Dosyayı Görüntüle

@@ -1,20 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'bg', {
button: 'Вмъква HTML5 видео',
title: 'HTML5 видео',
infoLabel: 'Видео',
allowed: 'Допустими файлови разширения: MP4, WebM, Ogv',
urlMissing: 'URL адресът на източника на видео липсва.',
videoProperties: 'Свойства на видео',
upload: 'Качване',
btnUpload: 'Изпрати на сървъра',
advanced: 'Разширено',
autoplay: 'Автоматично изпълнение',
allowdownload: 'Позволено изтегляне?',
advisorytitle: 'Заглавие',
yes: 'Да',
no: 'Не',
loop: 'Циклично изпълнение',
responsive: 'Адаптивна ширина',
controls: 'Показване на контролите',
poster: 'URL миниатюра'
} );

+ 0
- 20
src/static/ckeditor/plugins/html5video/lang/ca.js Dosyayı Görüntüle

@@ -1,20 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'ca', {
button: "Insereix un vídeo HTML5",
title: "Vídeo HTML5",
infoLabel: "Informació del vídeo",
allowed: "Extensions d'arxius permeses: MP4, WebM, Ogv",
urlMissing: "Falta l'URL de la font de vídeo.",
videoProperties: "Propietats de vídeo",
upload: "Pujar",
btnUpload: "Envia-lo al servidor",
advanced: "Avançat",
autoplay: "Reproducció automàtica?",
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: "Sí",
no: "No",
loop: "Bucle?",
responsive: "Ample adaptatiu",
controls: "Mostra els controls",
poster: "Miniatura"
} );

+ 0
- 17
src/static/ckeditor/plugins/html5video/lang/de.js Dosyayı Görüntüle

@@ -1,17 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'de', {
button: 'HTML5 Video einfügen',
title: 'HTML5 Video',
infoLabel: 'Video Infos',
allowed: 'Erlaubte Dateierweiterungen: MP4, WebM, Ogv',
urlMissing: 'Sie haben keine URL zur Video-Datei angegeben.',
videoProperties: 'Video-Einstellungen',
upload: 'Hochladen',
btnUpload: 'Zum Server senden',
advanced: 'Erweitert',
autoplay: 'Autoplay?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Ja',
no: 'Nein',
controls: 'Steuerelemente anzeigen'
} );

+ 0
- 18
src/static/ckeditor/plugins/html5video/lang/es.js Dosyayı Görüntüle

@@ -1,18 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'es', {
button: 'Insertar video HTML5',
title: 'Video HTML5',
infoLabel: 'Información del video',
allowed: 'Extensiones de archivo permitidas: MP4, WebM, Ogv',
urlMissing: 'La URL del video no puede estar vacía.',
videoProperties: 'Propiedades del video',
upload: 'Cargar',
btnUpload: 'Enviar al servidor',
advanced: 'Avanzado',
autoplay: '¿Reproducir automáticamente?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Sí',
no: 'No',
responsive: '¿Responsive?',
controls: 'Mostrar controles'
} );

+ 0
- 17
src/static/ckeditor/plugins/html5video/lang/eu.js Dosyayı Görüntüle

@@ -1,17 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'eu', {
button: 'Txertatu HTML5 bideoa',
title: 'HTML5 bideoa',
infoLabel: 'Bideoaren informazioa',
allowed: 'Baimendutako fitxategi luzapenak: MP4, WebM, Ogv',
urlMissing: 'Bideoaren URLak ezin du hutsik egon.',
videoProperties: 'Bideoaren propietateak',
upload: 'Kargatu',
btnUpload: 'Bidali zerbitzarira',
advanced: 'Aurreratua',
autoplay: 'Automatikoki erreproduzitu?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Bai',
no: 'Ez',
controls: 'Erakutsi kontrolak?'
} );

+ 0
- 18
src/static/ckeditor/plugins/html5video/lang/fa.js Dosyayı Görüntüle

@@ -1,18 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'fa', {
button: 'وارد کردن ویدیوی HTML5',
title: 'ویدیوی HTML5',
infoLabel: 'اطلاعات ویدیو',
allowed: 'پسوندهای مجاز فایل: MP4, WebM, Ogv',
urlMissing: 'URL منبع ویدیو پیدا نشد.',
videoProperties: 'خواهص ویدیو',
upload: 'بارگذاری',
btnUpload: 'ارسال به سرور',
advanced: 'پیشرفته',
autoplay: 'پخش خودکار؟',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'بله',
no: 'خیر',
responsive: 'عرض واکنشگرا',
controls: 'نمایش کنترل؟'
} );

+ 0
- 17
src/static/ckeditor/plugins/html5video/lang/fr.js Dosyayı Görüntüle

@@ -1,17 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'fr', {
button: 'Insérer un lecteur video HTML5',
title: 'HTML5 video',
infoLabel: 'Informations video',
allowed: 'Extensions de fichiers autorisées: MP4, WebM, Ogv',
urlMissing: 'URL de la source video manquante. Veuillez la renseigner.',
videoProperties: 'Propriétés Video',
upload: 'Télécharger',
btnUpload: 'Envoyer vers le serveur',
advanced: 'Avancé',
autoplay: 'Jouer automatiquement ?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Oui',
no: 'Non',
controls: 'Afficher les contrôles ?'
} );

+ 0
- 18
src/static/ckeditor/plugins/html5video/lang/he.js Dosyayı Görüntüle

@@ -1,18 +0,0 @@

CKEDITOR.plugins.setLang('html5video', 'he', {
button: 'הוסף וידאו HTML5',
title: 'וידאו HTML5',
infoLabel: 'מידע וידאו',
allowed: 'סוגי קבצים מורשים: MP4, WebM, Ogv',
urlMissing: 'כתובת הוידאו חסרה',
videoProperties: 'מאפייני וידאו',
upload: 'העלה',
btnUpload: 'שלח לשרת',
advanced: 'מתקדם',
autoplay: 'ניגון אוטומטי?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'כן',
no: 'לא',
responsive: 'רוחב רספונסיבי'
});

+ 0
- 20
src/static/ckeditor/plugins/html5video/lang/ko.js Dosyayı Görüntüle

@@ -1,20 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'ko', {
button: 'HTML5 비디오 추가하기',
title: 'HTML5 비디오',
infoLabel: '비디오 정보',
allowed: '허용된 파일 확장자들: MP4, WebM, Ogv',
urlMissing: '비디오 Url이 없습니다.',
videoProperties: '비디오 속성',
upload: '업로드',
btnUpload: '서버로 전송',
advanced: '고급',
autoplay: '자동재생?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: '네',
no: '아니오',
loop: '무한반복?',
responsive: '반응형 너비',
controls: '컨트롤 보여주기',
poster: '썸네일'
} );

+ 0
- 18
src/static/ckeditor/plugins/html5video/lang/pl.js Dosyayı Görüntüle

@@ -1,18 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'pl', {
button: 'Wstaw HTML5 video',
title: 'HTML5 video',
infoLabel: 'Informacje',
allowed: 'Dozwolone typy plików: MP4, WebM, Ogv',
urlMissing: 'Nie znaleziono URL do pliku video.',
videoProperties: 'Właściwości',
upload: 'Wrzuć plik',
btnUpload: 'Wyślij na serwer',
advanced: 'Zaawansowane',
autoplay: 'Autoodtwarzanie?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Tak',
no: 'Nie',
responsive: 'Szerokość responsywna',
controls: 'Pokaż kontrolki'
} );

+ 0
- 18
src/static/ckeditor/plugins/html5video/lang/pt-br.js Dosyayı Görüntüle

@@ -1,18 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'pt-br', {
button: 'Inserir vídeo HTML5',
title: 'HTML5 video',
infoLabel: 'Informações do Vídeo',
allowed: 'Extensões permitidas: MP4, WebM, Ogv',
urlMissing: 'O URL do vídeo está faltando.',
videoProperties: 'Propriedades do vídeo',
upload: 'Upload',
btnUpload: 'Enviar para o servidor',
advanced: 'Avançado',
autoplay: 'Autoplay?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Sim',
no: 'Não',
responsive: 'Largura responsiva',
controls: 'Exibir controles'
} );

+ 0
- 18
src/static/ckeditor/plugins/html5video/lang/pt.js Dosyayı Görüntüle

@@ -1,18 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'pt', {
button: 'Inserir vídeo HTML5',
title: 'HTML5 video',
infoLabel: 'Informações do Vídeo',
allowed: 'Extensões permitidas: MP4, WebM, Ogv',
urlMissing: 'O URL do vídeo está faltando.',
videoProperties: 'Propriedades do vídeo',
upload: 'Upload',
btnUpload: 'Enviar para o servidor',
advanced: 'Avançado',
autoplay: 'Autoplay?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Sim',
no: 'Não',
responsive: 'Largura responsiva',
controls: 'Exibir controles'
} );

+ 0
- 21
src/static/ckeditor/plugins/html5video/lang/ru.js Dosyayı Görüntüle

@@ -1,21 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'ru', {
button: 'Вставить HTML5 видео',
title: 'HTML5 видео',
infoLabel: 'Видео',
allowed: 'Допустимые расширения файлов: MP4, WebM, Ogv',
urlMissing: 'Не выбран источник видео',
videoProperties: 'Свойства видео',
upload: 'Загрузить',
btnUpload: 'Загрузить на сервер',
advanced: 'Дополнительно',
autoplay: 'Автовоспроизведение',
allowdownload: 'Разрешить загрузку',
advisorytitle: 'Заголовок',
yes: 'Да',
no: 'Нет',
responsive: 'Адаптивная ширина',
controls: 'Показать элементы управления',
loop: 'Зациклить',
poster: 'Постер',
advisorytitle: 'Пояснительный текст'
} );

+ 0
- 17
src/static/ckeditor/plugins/html5video/lang/uk.js Dosyayı Görüntüle

@@ -1,17 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'uk', {
button: 'Вставити HTML5 відео',
title: 'HTML5 відео',
infoLabel: 'Інформація',
allowed: 'Допустимі розширення файлів: MP4, WebM, Ogv',
urlMissing: 'Не обрано джерела відео',
videoProperties: 'Властивості відео',
upload: 'Відвантажити',
btnUpload: 'Відвантажити на сервер',
advanced: 'Додатково',
autoplay: 'Автовідтворення?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Так',
no: 'Ні',
controls: 'Показати елементи керування?'
} );

+ 0
- 17
src/static/ckeditor/plugins/html5video/lang/uz.js Dosyayı Görüntüle

@@ -1,17 +0,0 @@
CKEDITOR.plugins.setLang( 'html5video', 'uz', {
button: 'HTML5 video qo‘shing',
title: 'HTML5 video',
infoLabel: 'Video ma\'lumot',
allowed: 'Ruxsat etilgan kengaytmalar: MP4, WebM, Ogv',
urlMissing: 'Video\'ning URL manbasi topilmadi.',
videoProperties: 'Video xususiyatlari',
upload: 'Yuklash',
btnUpload: 'Serverga jo‘natish',
advanced: 'Kengaytrilgan',
autoplay: 'Avtoijro?',
allowdownload: 'Allow download?',
advisorytitle: 'Advisory title',
yes: 'Ha',
no: 'Yo‘q',
controls: 'Tekshiruvlarni ko‘rsatish'
} );

+ 2
- 2
src/system/inc/inc_fun_funAdmin.php Dosyayı Görüntüle

@@ -150,10 +150,10 @@ function SpGetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype
if ($GLOBALS['cfg_db_language']=="utf8mb4") {
$emoji = ",emoji";
}
$addConfig = ",{allowedContent:true,pasteFilter:null,filebrowserImageUploadUrl:'./dialog/select_images_post.php',filebrowserUploadUrl:'./dialog/select_media_post.php?ck=1',extraPlugins:'html5video,dedepagebreak,ddfilebrowser,mimage,textindent,codesnippet{$emoji}',codeSnippet_theme: 'default'}";
$addConfig = ",{allowedContent:true,pasteFilter:null,filebrowserImageUploadUrl:'./dialog/select_images_post.php',filebrowserUploadUrl:'./dialog/select_media_post.php?ck=1',extraPlugins:'html5video,html5audio,dedepagebreak,ddfilebrowser,mimage,textindent,codesnippet{$emoji}',codeSnippet_theme: 'default'}";
}
if (defined('DEDEUSER')) {
$addConfig = ",{filebrowserImageUploadUrl:'api.php?action=upload&type=litpic&ck=1',filebrowserUploadUrl:'api.php?action=upload&type=media&ck=1',extraPlugins:'html5video,textindent',filebrowserImageBrowseDisabled:true}";
$addConfig = ",{filebrowserImageUploadUrl:'api.php?action=upload&type=litpic&ck=1',filebrowserUploadUrl:'api.php?action=upload&type=media&ck=1',extraPlugins:'html5video,html5audio,textindent',filebrowserImageBrowseDisabled:true}";
}
$code = <<<EOT
<script src="{$GLOBALS['cfg_static_dir']}/ckeditor/ckeditor.js"></script>


Yükleniyor…
İptal
Kaydet