Mailspring/internal_packages/attachments/lib/main.es6
Ben Gotow 039d9bea61 feat(inline-images): Drag & drop or paste inline images
Summary: Initial support for inline images. Tests still forthcoming!

Test Plan: WIP

Reviewers: mark, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3295
2016-09-26 17:01:19 -07:00

16 lines
514 B
JavaScript

import {
ComponentRegistry,
} from 'nylas-exports';
import AttachmentComponent from "./attachment-component";
import ImageAttachmentComponent from "./image-attachment-component";
export function activate() {
ComponentRegistry.register(AttachmentComponent, {role: 'Attachment'})
ComponentRegistry.register(ImageAttachmentComponent, {role: 'Attachment:Image'})
}
export function deactivate() {
ComponentRegistry.unregister(AttachmentComponent);
ComponentRegistry.unregister(ImageAttachmentComponent);
}