I was taking reference from this two links below to make text editor using code mirror. The links are as follows:
However, due to some reasons, I need to disable (make readonly) writing to this editor. I tried below two options but they are not working:
How can I make the editor readOnly (i.e disable typing) with only some fixed and template text.