Get text entered in the editor example / event fired

Hi, Im looking for a way to get the text entered in the editor. Im using the basic example provided in documentation. From what Ive read, there is a dispatchTransaction method / use update() in a plugin. Are there any examples for this?