aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/html5video/dialogs/html5video.js
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/html5video/dialogs/html5video.js')
-rw-r--r--sources/plugins/html5video/dialogs/html5video.js13
1 files changed, 11 insertions, 2 deletions
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
@@ -41,13 +41,23 @@
41 } ] 41 } ]
42 }, 42 },
43 { 43 {
44 type: 'checkbox',
45 id: 'responsive',
46 label: editor.lang.html5video.responsive,
47 setup: function( widget ) {
48 this.setValue( widget.data.responsive );
49 },
50 commit: function( widget ) {
51 widget.setData( 'responsive', this.getValue()?'true':'' );
52 }
53 },
54 {
44 type: 'hbox', 55 type: 'hbox',
45 id: 'size', 56 id: 'size',
46 children: [ { 57 children: [ {
47 type: 'text', 58 type: 'text',
48 id: 'width', 59 id: 'width',
49 label: editor.lang.common.width, 60 label: editor.lang.common.width,
50 'default': 400,
51 setup: function( widget ) { 61 setup: function( widget ) {
52 if ( widget.data.width ) { 62 if ( widget.data.width ) {
53 this.setValue( widget.data.width ); 63 this.setValue( widget.data.width );
@@ -61,7 +71,6 @@
61 type: 'text', 71 type: 'text',
62 id: 'height', 72 id: 'height',
63 label: editor.lang.common.height, 73 label: editor.lang.common.height,
64 'default': 300,
65 setup: function( widget ) { 74 setup: function( widget ) {
66 if ( widget.data.height ) { 75 if ( widget.data.height ) {
67 this.setValue( widget.data.height ); 76 this.setValue( widget.data.height );