mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-13 21:24:58 +08:00
039d9bea61
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
16 lines
514 B
JavaScript
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);
|
|
}
|