How to add nofollow links in Richtext

I am trying to add a nofollow link in the richtext editor. Since there is no functionality around this, I decided to add it manually by adding an aref with rel=“nofollow”. Although this seems to work in the preview tab, it doesn’t work in production. Any ideas?