To use the Editor API, install the @wix/urls package using npm or Yarn:
@wix/urls
or
Then import { editor } from @wix/urls:
{ editor }