]>
git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blob - sources/plugins/html5audio/dialogs/html5audio.js
1 CKEDITOR
.dialog
.add( 'html5audio', function( editor
) {
3 title: editor
.lang
.html5audio
.title
,
8 label: editor
.lang
.html5audio
.infoLabel
,
14 widths: [ '365px', '110px' ],
19 label: editor
.lang
.common
.url
,
21 validate: CKEDITOR
.dialog
.validate
.notEmpty( editor
.lang
.html5audio
.urlMissing
),
22 setup: function( widget
) {
23 this.setValue( widget
.data
.src
);
25 commit: function( widget
) {
26 widget
.setData( 'src', this.getValue() );
32 // v-align with the 'txtUrl' field.
33 // TODO: We need something better than a fixed size here.
34 style: 'display:inline-block;margin-top:14px;',
36 label: editor
.lang
.common
.browseServer
,
38 filebrowser: 'info:url'
48 label: editor
.lang
.common
.align
,
50 [editor
.lang
.common
.alignCenter
, 'center'],
51 [editor
.lang
.common
.alignLeft
, 'left'],
52 [editor
.lang
.common
.alignRight
, 'right'],
53 [editor
.lang
.common
.alignNone
, 'none']
56 setup: function( widget
) {
57 if ( widget
.data
.align
) {
58 this.setValue( widget
.data
.align
);
61 commit: function( widget
) {
62 widget
.setData( 'align', this.getValue() );
70 filebrowser: 'uploadButton',
71 label: editor
.lang
.html5audio
.upload
,
75 label: editor
.lang
.html5audio
.btnUpload
,
82 filebrowser: 'info:url',
83 label: editor
.lang
.html5audio
.btnUpload
,
84 'for': [ 'Upload', 'upload' ]
89 label: editor
.lang
.html5audio
.advanced
,
98 label: editor
.lang
.html5audio
.autoplay
,
100 [editor
.lang
.html5audio
.yes
, 'yes'],
101 [editor
.lang
.html5audio
.no
, 'no']
104 setup: function( widget
) {
105 if ( widget
.data
.autoplay
) {
106 this.setValue( widget
.data
.autoplay
);
109 commit: function( widget
) {
110 widget
.setData( 'autoplay', this.getValue() );
116 label: editor
.lang
.html5audio
.allowdownload
,
118 [editor
.lang
.html5audio
.yes
, 'yes'],
119 [editor
.lang
.html5audio
.no
, 'no']
122 setup: function( widget
) {
123 if ( widget
.data
.allowdownload
) {
124 this.setValue(widget
.data
.allowdownload
);
127 commit: function( widget
) {
128 widget
.setData( 'allowdownload', this.getValue() );