0👍
Ok after digging this for over 24 hours I am finally able to fix it.
Anyone having any issue like this with GrapeJs please double check that you are not Font awesome js and css, because if you do your spans will be replaced by svgs and onclick are looking for spans.
Another possible issue would be your init for font awesome replacing span with svgs
I figured this out only because I saw svgs and span were hidden in my inspect element
Source:stackexchange.com