A big problem while editing files with CodeMirror

There is a big problem in the panel when modifying files with CodeMirror,
The problem is that Arabic words are changed automatically by deleting some letters while saving the modifications
For example, in the video shown https:// youtu.be/aEPnheDWtko :
echo "كلام عربي لتجربة حدوث المشكلة ";

transformed to

echo "كلام عربي تجربة حدوث المشكة ";

Without changing it

Someone else reported the problem