This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (({ | |
| compose: { createHigherOrderComponent }, | |
| element: { cloneElement, createElement: el }, | |
| hooks: { addFilter }, | |
| }) => { | |
| const ImageInUnresizableContext = ({ blockEdit, blockEditProps: { context } }) => { | |
| // If resize is not allowed then the Image block should omit the element used to | |
| // limit the max width. Due to a bug it won’t, but it can be made to by adding a | |
| // `type` property to the `__unstableParentLayout` prop. | |
| if ( context.allowResize === false ) { |
OlderNewer