Added methods to get and set the content of an editor