Here is a typo / copy paste issue in the documentation:
it must be dataApi not editorApi in line 12
Thank you! fixed it!