editor: added getters/setters for attachments and markdown