Ephox EditLive customization error in javascript: getEditor is undefined

I am trying to create a custom toolbar action using the documentation in page 42-43 of:


The javascript seems to fail as it keeps giving me this error message:

Line: 272
Error: ‘getEditor’ is undefined

I tried to debug and just as I thought, there is not such javascript function as ‘getEditor(…)’.
So what am I missing ?