]>
git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blob - sources/plugins/html5video/dialogs/html5video.js
99f89c365314f23259fd59b15cb101eb94bf9540
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'
49 label: editor
.lang
.common
.width
,
51 setup: function( widget
) {
52 if ( widget
.data
.width
) {
53 this.setValue( widget
.data
.width
);
56 commit: function( widget
) {
57 widget
.setData( 'width', this.getValue() );
63 label: editor
.lang
.common
.height
,
65 setup: function( widget
) {
66 if ( widget
.data
.height
) {
67 this.setValue( widget
.data
.height
);
70 commit: function( widget
) {
71 widget
.setData( 'height', this.getValue() );
83 label: editor
.lang
.common
.align
,
85 [editor
.lang
.common
.alignCenter
, 'center'],
86 [editor
.lang
.common
.alignLeft
, 'left'],
87 [editor
.lang
.common
.alignRight
, 'right'],
88 [editor
.lang
.common
.alignNone
, 'none']
91 setup: function( widget
) {
92 if ( widget
.data
.align
) {
93 this.setValue( widget
.data
.align
);
96 commit: function( widget
) {
97 widget
.setData( 'align', this.getValue() );
105 filebrowser: 'uploadButton',
106 label: editor
.lang
.html5video
.upload
,
110 label: editor
.lang
.html5video
.btnUpload
,
111 style: 'height:40px',
117 filebrowser: 'info:url',
118 label: editor
.lang
.html5video
.btnUpload
,
119 'for': [ 'Upload', 'upload' ]
124 label: editor
.lang
.html5video
.advanced
,
133 label: editor
.lang
.html5video
.autoplay
,
135 [editor
.lang
.html5video
.yes
, 'yes'],
136 [editor
.lang
.html5video
.no
, 'no']
139 setup: function( widget
) {
140 if ( widget
.data
.autoplay
) {
141 this.setValue( widget
.data
.autoplay
);
144 commit: function( widget
) {
145 widget
.setData( 'autoplay', this.getValue() );