UNPKG
@atlaskit/editor-plugin-submit-editor
Version:
latest (10.0.0)
10.0.0
9.0.0
8.0.3
8.0.2
8.0.1
8.0.0
7.0.0
6.0.0
5.0.0
4.0.0
3.1.1
3.1.0
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.5.0
1.4.0
1.3.15
1.3.14
1.3.13
1.3.12
1.3.11
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
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.2
1.0.1
1.0.0
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Submit editor plugin for @atlaskit/editor-core
bitbucket.org/atlassian/atlassian-frontend-mirror
@atlaskit/editor-plugin-submit-editor
/
dist
/
es2019
/
submitEditorPlugin.js
15 lines
•
299 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{ createPlugin }
from
'./pm-plugins/main'
;
export
const
submitEditorPlugin
= (
{ config: onSave, api }
) => ({
name
:
'submitEditor'
,
pmPlugins
(
) {
return
[{
name
:
'submitEditor'
,
plugin
:
(
{ dispatch }
) =>
createPlugin
(dispatch, api, onSave) }]; } });