X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fludivine-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fplugins%2Fhtml5audio%2Fdialogs%2Fhtml5audio.js;h=47de947a3b06b2fea5ef81b329fd1f8e64d75ca8;hp=0ab0d7d1ace81f8a67694c6b809604dd05b6e0eb;hb=1794320dcfdfcd19572fb1676294f9853a6bbc20;hpb=7183f6a6a21ad9124e70c997e0168459f377a9f2 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 @@ commit: function( widget ) { widget.setData( 'autoplay', this.getValue() ); } + }, + { + type: 'radio', + id: 'allowdownload', + label: editor.lang.html5audio.allowdownload, + items: [ + [editor.lang.html5audio.yes, 'yes'], + [editor.lang.html5audio.no, 'no'] + ], + 'default': 'no', + setup: function( widget ) { + if ( widget.data.allowdownload ) { + this.setValue(widget.data.allowdownload); + } + }, + commit: function( widget ) { + widget.setData( 'allowdownload', this.getValue() ); + } } ] } ] } ]