@atlaskit/editor-plugin-image-upload
Version:
Image upload plugin for @atlaskit/editor-core
16 lines (15 loc) • 489 B
TypeScript
import type { Command } from '@atlaskit/editor-common/types/command';
import type { NextEditorPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
type ImageUploadActions = {
startUpload: () => Command;
};
type ImageUploadSharedState = {
active: boolean;
enabled: boolean;
hidden: boolean;
};
export type ImageUploadPlugin = NextEditorPlugin<'imageUpload', {
actions: ImageUploadActions;
sharedState: ImageUploadSharedState | undefined;
}>;
export {};