Not sure if it’ll achieve exactly what you want, but you can embed codepens in rich text fields from the URL: