Adding custom block formats to TinyMCE. Everything works until JavaScript error when applying the format
What you have is working perfectly in a clean WordPress installation, using Twenty Seventeen, so it means the problem is the way in which you are minifying your JS or anything else within this specific WordPress installation. Do the usual thing, deactivate all plugins and check again, if the problem is gone activate one by … Read more