Using javascript to pull content from CMS fields on button click

@mikeyevin Just jumping onto this as I have a similar problem. I’m creating something where each time you click a button it will display copy from a field in a CMS collection.

I got it to work with javascript when the field was a plain text field as I could select the field in the custom code.

However I decided that I wanted to be able to style some of the copy by having some words in bold. However when the field is rich text I’m unable to select it in the custom code.

Is there any way around this?