UNPKG
@atlaskit/editor-plugin-image-upload
Version:
latest (10.0.0)
10.0.0
9.0.0
8.0.2
8.0.1
8.0.0
7.0.0
6.0.2
6.0.1
6.0.0
5.0.0
4.0.0
3.0.1
3.0.0
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.4.0
1.3.0
1.2.17
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Image upload plugin for @atlaskit/editor-core
bitbucket.org/atlassian/atlassian-frontend-mirror
@atlaskit/editor-plugin-image-upload
/
dist
/
es2019
/
pm-plugins
/
actions.js
8 lines
•
228 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
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 });