Added editor context to API execution. Fixes #220