Support

Account

Home Forums Gutenberg How to make Custom Block load JS file only in the editor Reply To: How to make Custom Block load JS file only in the editor

  • I didn’t find a proper solution, but I found a way around it on Stackexchange: See the answer here: https://wordpress.stackexchange.com/questions/331774/load-script-after-block-is-inserted?rq=1 (basically onload event on an empty image….strange, but it works).