Custom Blocks in Editor

[ad_1]

Hi all,

I’m creating custom blocks in a plugin using ACF’s register block functionality. It works great on the front end, but in the editor preview, JS does not load – so components like carousels can’t be previewed while editing. Does anyone have a way to load custom JS in the editor going this route?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer