Makes attachments to objects and register them in TinyMCE