Hello @ixxxl,
The code from the post that you've shared works only for the plain text field.
For the rich text you can try out the code from this post: