Fix editor api example