]> git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blobdiff - sources/plugins/html5audio/dialogs/html5audio.js
Update to 4.7.3
[perso/Immae/Projets/packagist/ludivine-ckeditor-component.git] / sources / plugins / html5audio / dialogs / html5audio.js
index 0ab0d7d1ace81f8a67694c6b809604dd05b6e0eb..47de947a3b06b2fea5ef81b329fd1f8e64d75ca8 100644 (file)
                         commit: function( widget ) {\r
                             widget.setData( 'autoplay', this.getValue() );\r
                         }\r
+                    },\r
+                    {\r
+                        type: 'radio',\r
+                        id: 'allowdownload',\r
+                        label: editor.lang.html5audio.allowdownload,\r
+                        items: [\r
+                            [editor.lang.html5audio.yes, 'yes'],\r
+                            [editor.lang.html5audio.no, 'no']\r
+                        ],\r
+                        'default': 'no',\r
+                        setup: function( widget ) {\r
+                            if ( widget.data.allowdownload ) {\r
+                                this.setValue(widget.data.allowdownload);\r
+                            }\r
+                        },\r
+                        commit: function( widget ) {\r
+                            widget.setData( 'allowdownload', this.getValue() );\r
+                        }\r
                     } ]\r
                 } ]\r
             } ]\r