I am a professor at a Public University in Brazil and I am working on a project to help my students to program using python language. I found that CodeMirror is an excellent way to help them visualize their code work during this learning process because they can practice and meet desirable levels of performance while being guided for me. In the platform that I am designing, I am trying to “encourage” my students to type each letter/symbol or number used in the code, especially because some of them can be tempted to cheat their colleagues to get higher grades. Based on this concern, I would appreciate so much if someone could help me to block students to paste any content inside the “textarea” or “code box area”. I’ve already blocked the “copy”, “cut” functions inside that “textarea” by using the command “lineWiseCopyCut: false,” .
To sum up, the goal is that students should not be able to paste any content inside the “textarea” or “code box area” , rather, they will have to really work on developing the code by themselves by typing it in the “textarea”
Thank you so much!