Add write and erase methods for Editor (+ tests :koala:)