]>
git.immae.eu Git - perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git/blob - html5video.js
76799e7744529d52d99a41bc0c45816b31eea052
1 CKEDITOR
.dialog
.add( 'html5video', function( editor
) {
3 title: editor
.lang
.html5video
.title
,
8 label: editor
.lang
.html5video
.infoLabel
,
15 widths: [ '365px', '110px' ],
20 label: editor
.lang
.html5video
.allowed
,
22 validate: CKEDITOR
.dialog
.validate
.notEmpty( editor
.lang
.html5video
.urlMissing
),
23 setup: function( widget
) {
24 this.setValue( widget
.data
.src
);
26 commit: function( widget
) {
27 widget
.setData( 'src', this.getValue() );
33 // v-align with the 'txtUrl' field.
34 // TODO: We need something better than a fixed size here.
35 style: 'display:inline-block;margin-top:14px;',
37 label: editor
.lang
.common
.browseServer
,
39 filebrowser: 'info:url'
46 label: editor
.lang
.html5video
.responsive
,
47 setup: function( widget
) {
48 this.setValue( widget
.data
.responsive
);
50 commit: function( widget
) {
51 widget
.setData( 'responsive', this.getValue()?'true':'' );
60 label: editor
.lang
.common
.width
,
61 setup: function( widget
) {
62 if ( widget
.data
.width
) {
63 this.setValue( widget
.data
.width
);
66 commit: function( widget
) {
67 widget
.setData( 'width', this.getValue() );
73 label: editor
.lang
.common
.height
,
74 setup: function( widget
) {
75 if ( widget
.data
.height
) {
76 this.setValue( widget
.data
.height
);
79 commit: function( widget
) {
80 widget
.setData( 'height', this.getValue() );
92 label: editor
.lang
.common
.align
,
94 [editor
.lang
.common
.alignCenter
, 'center'],
95 [editor
.lang
.common
.alignLeft
, 'left'],
96 [editor
.lang
.common
.alignRight
, 'right'],
97 [editor
.lang
.common
.alignNone
, 'none']
100 setup: function( widget
) {
101 if ( widget
.data
.align
) {
102 this.setValue( widget
.data
.align
);
105 commit: function( widget
) {
106 widget
.setData( 'align', this.getValue() );
114 filebrowser: 'uploadButton',
115 label: editor
.lang
.html5video
.upload
,
119 label: editor
.lang
.html5video
.btnUpload
,
120 style: 'height:40px',
126 filebrowser: 'info:url',
127 label: editor
.lang
.html5video
.btnUpload
,
128 'for': [ 'Upload', 'upload' ]
133 label: editor
.lang
.html5video
.advanced
,
142 label: editor
.lang
.html5video
.autoplay
,
144 [editor
.lang
.html5video
.yes
, 'yes'],
145 [editor
.lang
.html5video
.no
, 'no']
148 setup: function( widget
) {
149 if ( widget
.data
.autoplay
) {
150 this.setValue( widget
.data
.autoplay
);
153 commit: function( widget
) {
154 widget
.setData( 'autoplay', this.getValue() );