There are many reasons for that. If you have a wanted level then that could be the possible reason for the editor problem. If you are trying to use the editor in the middle of a mission then you should exit the mission before using the editor. Lastly, if you are in a car or any vehicle, get out of it and then try to use the editor.