Skip to content

Commit 49cc352

Browse files
committed
Fix ari image not display in editor
1 parent 9827547 commit 49cc352

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/js/editor.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22

33
/* Customize BFFEditorSettings in inc/Services/Editor.php or with `bff_editor_custom_settings` filter (see readme). */
44

5+
import lazySizes from 'lazysizes'
56
import domReady from '@wordpress/dom-ready'
67
import { addFilter } from '@wordpress/hooks'
78
import { unregisterBlockStyle, getBlockVariations, unregisterBlockVariation } from '@wordpress/blocks'
89

10+
/**
11+
* LazySizes configuration
12+
* https://github.com/aFarkas/lazysizes/#js-api---options
13+
*/
14+
lazySizes.cfg.nativeLoading = {
15+
setLoadingAttribute: false,
16+
}
17+
918
// Native Gutenberg
1019
domReady(() => {
1120
// Disable specific block styles

0 commit comments

Comments
 (0)