Use path instead of url on editor JS