diff --git a/core-blocks/audio/edit.js b/core-blocks/audio/edit.js
index 9bbc8cf67e08df..e418a878a16bb5 100644
--- a/core-blocks/audio/edit.js
+++ b/core-blocks/audio/edit.js
@@ -5,6 +5,7 @@ import { __ } from '@wordpress/i18n';
import {
IconButton,
PanelBody,
+ SelectControl,
Toolbar,
ToggleControl,
withNotices,
@@ -41,7 +42,7 @@ class AudioEdit extends Component {
}
render() {
- const { autoplay, caption, loop, src } = this.props.attributes;
+ const { autoplay, caption, loop, preload, src } = this.props.attributes;
const { setAttributes, isSelected, className, noticeOperations, noticeUI } = this.props;
const { editing } = this.state;
const switchToEditing = () => {
@@ -102,7 +103,7 @@ class AudioEdit extends Component {
-
+
+ setAttributes( { preload: ( 'none' !== value ) ? value : undefined } ) }
+ options={ [
+ { value: 'auto', label: __( 'Auto' ) },
+ { value: 'metadata', label: __( 'Metadata' ) },
+ { value: 'none', label: __( 'None' ) },
+ ] }
+ />