when edit, add check for the result of beforeShowEditor and when the result is false, stop the process of edit