diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 18:55:29 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 18:55:29 +0100 |
commit | 1794320dcfdfcd19572fb1676294f9853a6bbc20 (patch) | |
tree | a4c9e978947d6930d50391747382d7f95a5863e3 /sources/plugins/html5audio/dialogs | |
parent | 7183f6a6a21ad9124e70c997e0168459f377a9f2 (diff) | |
download | ludivine-ckeditor-component-1794320dcfdfcd19572fb1676294f9853a6bbc20.tar.gz ludivine-ckeditor-component-1794320dcfdfcd19572fb1676294f9853a6bbc20.tar.zst ludivine-ckeditor-component-1794320dcfdfcd19572fb1676294f9853a6bbc20.zip |
Diffstat (limited to 'sources/plugins/html5audio/dialogs')
-rw-r--r-- | sources/plugins/html5audio/dialogs/html5audio.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sources/plugins/html5audio/dialogs/html5audio.js b/sources/plugins/html5audio/dialogs/html5audio.js index 0ab0d7d..47de947 100644 --- a/sources/plugins/html5audio/dialogs/html5audio.js +++ b/sources/plugins/html5audio/dialogs/html5audio.js | |||
@@ -109,6 +109,24 @@ | |||
109 | commit: function( widget ) { | 109 | commit: function( widget ) { |
110 | widget.setData( 'autoplay', this.getValue() ); | 110 | widget.setData( 'autoplay', this.getValue() ); |
111 | } | 111 | } |
112 | }, | ||
113 | { | ||
114 | type: 'radio', | ||
115 | id: 'allowdownload', | ||
116 | label: editor.lang.html5audio.allowdownload, | ||
117 | items: [ | ||
118 | [editor.lang.html5audio.yes, 'yes'], | ||
119 | [editor.lang.html5audio.no, 'no'] | ||
120 | ], | ||
121 | 'default': 'no', | ||
122 | setup: function( widget ) { | ||
123 | if ( widget.data.allowdownload ) { | ||
124 | this.setValue(widget.data.allowdownload); | ||
125 | } | ||
126 | }, | ||
127 | commit: function( widget ) { | ||
128 | widget.setData( 'allowdownload', this.getValue() ); | ||
129 | } | ||
112 | } ] | 130 | } ] |
113 | } ] | 131 | } ] |
114 | } ] | 132 | } ] |