fix: stop Editor competing with Modal for focus
fix: stop Editor competing with Modal for focus

Editor now checks if the modal is open before trying to obtain focus.

raisedadead/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,jonathanihm/freeCodeCamp,BhaveshSGupta/FreeCodeCamp,raisedadead/FreeCodeCamp,jonathanihm/freeCodeCamp,FreeCodeCamp/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,FreeCodeCamp/FreeCodeCamp