Copy to clipboard not working in read only?

Hello. I haven’t been able to get copy functionality (either by using cmd + c or right-click) when readOnly is set to true or ‘nocursor’. I found a thread from a few years back about a known issue with setting the readOnly value to ‘nocursor’ (link below), but the solution suggested at the time was to just use true, which doesn’t seem to work either. Are you aware of any solutions to get copy functionality working in read-only mode?
Thanks.

Link to previous thread: Copy text to clipboard when readonly is set to cursor

Copying from a readOnly: true editor does work for me.

My mistake, my issue was originating from outside of Codemirror. readOnly: true is working fine now.
Thank you for the reply