Ok! I got it. The elements were only being added when I pasted content. And there's a TinyMCE initialization setting to stop this
'paste_remove_spans': True,
0
votes
Try opening the HTML view and adding the code from there. That should stop TinyMCE from changing anything.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more