UNPKG

@atlaskit/editor-plugin-image-upload

Version:

Image upload plugin for @atlaskit/editor-core

8 lines 228 B
import { stateKey } from './plugin-key'; const imageUploadAction = (tr, action) => { return tr.setMeta(stateKey, action); }; export const startUpload = event => tr => imageUploadAction(tr, { name: 'START_UPLOAD', event });