: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
async module(drag,type,slug,scrollTo){
const options=await api.Library.get(slug, type),
module = api.Module.initModule(options);
drag.replaceWith(module.el);
await api.bootstrap([module.id]);
api.Utils.runJs(module.el,'module');
api.Utils.scrollTo(module.el);
api.Builder.get().removeLayoutButton();