X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fludivine-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fplugins%2Fhtml5video%2Fdialogs%2Fhtml5video.js;h=76799e7744529d52d99a41bc0c45816b31eea052;hp=99f89c365314f23259fd59b15cb101eb94bf9540;hb=1794320dcfdfcd19572fb1676294f9853a6bbc20;hpb=7183f6a6a21ad9124e70c997e0168459f377a9f2 diff --git a/sources/plugins/html5video/dialogs/html5video.js b/sources/plugins/html5video/dialogs/html5video.js index 99f89c3..76799e7 100644 --- a/sources/plugins/html5video/dialogs/html5video.js +++ b/sources/plugins/html5video/dialogs/html5video.js @@ -40,6 +40,17 @@ } ] } ] }, + { + type: 'checkbox', + id: 'responsive', + label: editor.lang.html5video.responsive, + setup: function( widget ) { + this.setValue( widget.data.responsive ); + }, + commit: function( widget ) { + widget.setData( 'responsive', this.getValue()?'true':'' ); + } + }, { type: 'hbox', id: 'size', @@ -47,7 +58,6 @@ type: 'text', id: 'width', label: editor.lang.common.width, - 'default': 400, setup: function( widget ) { if ( widget.data.width ) { this.setValue( widget.data.width ); @@ -61,7 +71,6 @@ type: 'text', id: 'height', label: editor.lang.common.height, - 'default': 300, setup: function( widget ) { if ( widget.data.height ) { this.setValue( widget.data.height );