Add editor hooks