core-5088 make read only files uneditable in the editor