Creating the Editor class, and fixing clicks while mousedown