fixes the problem of multiple editor instances on the same page