refactoring before gauthier ok
This commit is contained in:
parent
164798e2ae
commit
156709642c
|
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => 'cb157be43098e220ac58');
|
||||
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => '6b99bf41aa6ae29bed43');
|
||||
|
|
|
|||
|
|
@ -157,13 +157,13 @@ const BrochureLinkFormatButton = props => {
|
|||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.BlockControls, null, isPopoverOpen && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Popover, {
|
||||
onClose: () => setIsPopoverOpen(false),
|
||||
className: "popover_tooltip_field"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.__experimentalLinkControl
|
||||
// prefetch pdf attachment
|
||||
, {
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.__experimentalLinkControl, {
|
||||
suggestionsQuery: {
|
||||
type: "attachment",
|
||||
subtype: "pdf"
|
||||
type: "attachment"
|
||||
// subtype: "application/pdf", // Not working
|
||||
// mime_type: "application/pdf", // Not working
|
||||
},
|
||||
|
||||
value: linkValue,
|
||||
onChange: value => {
|
||||
setLinkValue(value);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -43,16 +43,18 @@ function create_block_multiblocks_block_init()
|
|||
// Dynamics
|
||||
register_block_type(__DIR__ . '/blocks/questions-container/build');
|
||||
register_block_type(__DIR__ . '/blocks/vocabulaire-summary/build');
|
||||
register_block_type(__DIR__ . '/blocks/illustration-thematique/build');
|
||||
register_block_type(__DIR__ . '/blocks/focused-schema/build');
|
||||
register_block_type(__DIR__ . '/blocks/focused-thematique/build');
|
||||
// register_block_type(__DIR__ . '/blocks/chapitrage-thematique/build');
|
||||
|
||||
// register_block_type(__DIR__ . '/blocks/illustration-thematique/build');
|
||||
|
||||
// Statics
|
||||
register_block_type(__DIR__ . '/blocks/content-heading/build');
|
||||
register_block_type(__DIR__ . '/blocks/points-cles/build');
|
||||
register_block_type(__DIR__ . '/blocks/content-heading/build');
|
||||
register_block_type(__DIR__ . '/blocks/picture-banner/build');
|
||||
register_block_type(__DIR__ . '/blocks/highlight/build');
|
||||
register_block_type(__DIR__ . '/blocks/dynamicTest/build');
|
||||
register_block_type(__DIR__ . '/blocks/aside/build');
|
||||
}
|
||||
add_action('init', 'create_block_multiblocks_block_init');
|
||||
|
||||
|
|
|
|||
|
|
@ -49,20 +49,15 @@ const BrochureLinkFormatButton = (props) => {
|
|||
onClose={() => setIsPopoverOpen(false)}
|
||||
className='popover_tooltip_field'>
|
||||
<LinkControl
|
||||
// prefetch pdf attachment
|
||||
|
||||
|
||||
suggestionsQuery={{
|
||||
type: "attachment",
|
||||
subtype: "pdf",
|
||||
// subtype: "application/pdf", // Not working
|
||||
// mime_type: "application/pdf", // Not working
|
||||
}}
|
||||
|
||||
|
||||
value={linkValue}
|
||||
onChange={(value) => {
|
||||
setLinkValue(value);
|
||||
}}
|
||||
|
||||
/>
|
||||
<Button
|
||||
icon={check}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user