I had recently tried to add background image on the pagebuilder , didn’t worked and got the following error in console:
Uncaught TypeError: wp.media is not a function
I have opened functions.php and added the following line :
add_action( 'admin_enqueue_scripts', 'load_wp_media_files' ); function load_wp_media_files() { wp_enqueue_media(); }
it works now ,
Fix this bug in the next update,thanks .
Hi Alin Razvan
Thanks for letting us know about this. I’ve logged this as a potential bug in our issue tracker. We’ll investigate this as soon as possible and try come up with a fix.
Magus