Skip to content

Commit f444cb2

Browse files
authored
Merge pull request #480 from BeAPI/fix/ari
Fix ari image not display in editor
2 parents e0734dc + 49cc352 commit f444cb2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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)