Add methods setMetadata and getMetadata to Editor.