@@ -16,15 +16,15 @@ import VisibilityOffIcon from 'part:@sanity/base/visibility-off-icon'
16
16
import BinaryIcon from 'part:@sanity/base/binary-icon'
17
17
import styles from './styles/Editor.css'
18
18
import copyDocument from '../utils/copyDocument'
19
- import IconMoreVert from 'part:@sanity/base/more-vert-icon'
20
19
import Menu from 'part:@sanity/components/menus/default'
21
20
import ContentCopyIcon from 'part:@sanity/base/content-copy-icon'
22
21
import documentStore from 'part:@sanity/base/datastore/document'
23
- import { debounce , truncate , capitalize , startCase } from 'lodash'
22
+ import { debounce } from 'lodash'
24
23
import { getPublishedId , newDraftFrom } from '../utils/draftUtils'
25
24
import TimeAgo from '../components/TimeAgo'
26
25
import { PreviewFields } from 'part:@sanity/base/preview'
27
26
import Pane from 'part:@sanity/components/panes/default'
27
+ import afterEditorComponents from 'all:part:@sanity/desk-tool/after-editor-component'
28
28
29
29
const preventDefault = ev => ev . preventDefault ( )
30
30
@@ -98,7 +98,6 @@ const INITIAL_STATE = {
98
98
}
99
99
100
100
function getToggleKeyState ( event ) {
101
-
102
101
if ( event . ctrlKey
103
102
&& event . code === 'KeyI'
104
103
&& event . altKey
@@ -112,6 +111,8 @@ function getToggleKeyState(event) {
112
111
&& ! event . shiftKey ) {
113
112
return 'showConfirmPublish'
114
113
}
114
+
115
+ return undefined
115
116
}
116
117
117
118
export default withRouterHOC ( class Editor extends React . PureComponent {
@@ -416,6 +417,10 @@ export default withRouterHOC(class Editor extends React.PureComponent {
416
417
/>
417
418
</ form >
418
419
420
+ { afterEditorComponents . map ( ( AfterEditorComponent , i ) =>
421
+ < AfterEditorComponent key = { i } documentId = { published . _id } />
422
+ ) }
423
+
419
424
{ inspect && (
420
425
< InspectView
421
426
value = { value }
0 commit comments