@wordpress/editor 14.8.8 → 14.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bindings/api.js +0 -29
- package/build/bindings/api.js.map +1 -1
- package/build/bindings/post-meta.js +2 -1
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/header/index.js +3 -1
- package/build/components/header/index.js.map +1 -1
- package/build/components/provider/index.js +9 -11
- package/build/components/provider/index.js.map +1 -1
- package/build/components/text-editor/index.js +9 -1
- package/build/components/text-editor/index.js.map +1 -1
- package/build/components/zoom-out-toggle/index.js +5 -1
- package/build/components/zoom-out-toggle/index.js.map +1 -1
- package/build/private-apis.js +0 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +3 -1
- package/build/store/actions.js.map +1 -1
- package/build-module/bindings/api.js +1 -29
- package/build-module/bindings/api.js.map +1 -1
- package/build-module/bindings/post-meta.js +2 -1
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/header/index.js +3 -1
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/provider/index.js +9 -11
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/text-editor/index.js +9 -1
- package/build-module/components/text-editor/index.js.map +1 -1
- package/build-module/components/zoom-out-toggle/index.js +5 -1
- package/build-module/components/zoom-out-toggle/index.js.map +1 -1
- package/build-module/private-apis.js +1 -2
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +3 -1
- package/build-module/store/actions.js.map +1 -1
- package/build-types/bindings/api.d.ts +0 -13
- package/build-types/bindings/api.d.ts.map +1 -1
- package/build-types/bindings/post-meta.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/text-editor/index.d.ts.map +1 -1
- package/build-types/components/zoom-out-toggle/index.d.ts +3 -1
- package/build-types/components/zoom-out-toggle/index.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/actions.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/bindings/api.js +1 -32
- package/src/bindings/post-meta.js +1 -0
- package/src/components/header/index.js +4 -1
- package/src/components/provider/index.js +31 -23
- package/src/components/text-editor/index.js +10 -1
- package/src/components/zoom-out-toggle/index.js +3 -1
- package/src/private-apis.js +1 -5
- package/src/store/actions.js +5 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/zoom-out-toggle/index.js"],"names":[],"mappings":";AAgBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/zoom-out-toggle/index.js"],"names":[],"mappings":";AAgBA;;gCAkCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AA6BA,6BAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;AAqJD;;;;GAIG;AACH;;EAOC;AAqGD;;;;GAIG;AACH;;EAOC;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAOjB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,yCAxCW,MAAM,GAsCL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,6CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,+CAVW,MAAM,GAQL,MAAM,CAOjB;AA6CD;;;EAKC;AAyBD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAOjB;AAiED;;;;;;GAMG;AACH,6CAJW,MAAM,GAEL,MAAM,CAOjB;AAED;;;;;;;;;;;GAWG;AACH,2CATW,OAAO,GAAC,MAAM,GAOb,MAAM,CAOjB;AAED;;;;;GAKG;AACH,4CAHW,OAAO,GACN,MAAM,CAOjB;AA+FD;;;;;GAKG;AACH,sCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,uCAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,wCAFY,MAAM,CAMjB;AAv1BM,kCAJI,MAAM,SACN,MAAM,YACN,YAAM;;WAiCf;AA0FK,gCAHI,MAAM,WACN,MAAM;;;WASf;AAOK,mCAFI,MAAM;;;;oBA8Hf;AAmBK;;;;oBA2BL;AAUK,iDAFI,MAAM,OAAC;;;oBAqBhB;AAEK;;;;;mBAkBL;AAKK;;WAIL;AAKK;;WAIL;AAgCK;;WAML;AAKK;;WAML;AAsHK,2DAFK,MAAM,OAAA;;;;WA8BhB;AAwBK,uCAFI,MAAM;;;;WAef;AAuBK,oDAJI,MAAM,GAEL,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAqDK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.8.
|
|
3
|
+
"version": "14.8.9",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -35,35 +35,35 @@
|
|
|
35
35
|
"@wordpress/a11y": "^4.8.2",
|
|
36
36
|
"@wordpress/api-fetch": "^7.8.2",
|
|
37
37
|
"@wordpress/blob": "^4.8.1",
|
|
38
|
-
"@wordpress/block-editor": "^14.3.
|
|
39
|
-
"@wordpress/blocks": "^13.8.
|
|
40
|
-
"@wordpress/commands": "^1.8.
|
|
41
|
-
"@wordpress/components": "^28.8.
|
|
38
|
+
"@wordpress/block-editor": "^14.3.7",
|
|
39
|
+
"@wordpress/blocks": "^13.8.5",
|
|
40
|
+
"@wordpress/commands": "^1.8.7",
|
|
41
|
+
"@wordpress/components": "^28.8.7",
|
|
42
42
|
"@wordpress/compose": "^7.8.3",
|
|
43
|
-
"@wordpress/core-data": "^7.8.
|
|
43
|
+
"@wordpress/core-data": "^7.8.7",
|
|
44
44
|
"@wordpress/data": "^10.8.3",
|
|
45
|
-
"@wordpress/dataviews": "^4.4.
|
|
45
|
+
"@wordpress/dataviews": "^4.4.7",
|
|
46
46
|
"@wordpress/date": "^5.8.2",
|
|
47
47
|
"@wordpress/deprecated": "^4.8.2",
|
|
48
48
|
"@wordpress/dom": "^4.8.2",
|
|
49
49
|
"@wordpress/element": "^6.8.1",
|
|
50
|
-
"@wordpress/fields": "^0.0.
|
|
50
|
+
"@wordpress/fields": "^0.0.8",
|
|
51
51
|
"@wordpress/hooks": "^4.8.2",
|
|
52
52
|
"@wordpress/html-entities": "^4.8.1",
|
|
53
53
|
"@wordpress/i18n": "^5.8.2",
|
|
54
54
|
"@wordpress/icons": "^10.8.2",
|
|
55
|
-
"@wordpress/interface": "^6.8.
|
|
55
|
+
"@wordpress/interface": "^6.8.7",
|
|
56
56
|
"@wordpress/keyboard-shortcuts": "^5.8.3",
|
|
57
57
|
"@wordpress/keycodes": "^4.8.2",
|
|
58
58
|
"@wordpress/media-utils": "^5.8.2",
|
|
59
59
|
"@wordpress/notices": "^5.8.3",
|
|
60
|
-
"@wordpress/patterns": "^2.8.
|
|
61
|
-
"@wordpress/plugins": "^7.8.
|
|
62
|
-
"@wordpress/preferences": "^4.8.
|
|
60
|
+
"@wordpress/patterns": "^2.8.7",
|
|
61
|
+
"@wordpress/plugins": "^7.8.7",
|
|
62
|
+
"@wordpress/preferences": "^4.8.7",
|
|
63
63
|
"@wordpress/private-apis": "^1.8.1",
|
|
64
|
-
"@wordpress/reusable-blocks": "^5.8.
|
|
64
|
+
"@wordpress/reusable-blocks": "^5.8.7",
|
|
65
65
|
"@wordpress/rich-text": "^7.8.3",
|
|
66
|
-
"@wordpress/server-side-render": "^5.8.
|
|
66
|
+
"@wordpress/server-side-render": "^5.8.7",
|
|
67
67
|
"@wordpress/url": "^4.8.1",
|
|
68
68
|
"@wordpress/warning": "^3.8.1",
|
|
69
69
|
"@wordpress/wordcount": "^4.8.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "b1ace05ee94f0803e51b205306c19fc706499ede"
|
|
90
90
|
}
|
package/src/bindings/api.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
store as blocksStore,
|
|
6
|
-
registerBlockBindingsSource,
|
|
7
|
-
} from '@wordpress/blocks';
|
|
8
|
-
import { dispatch } from '@wordpress/data';
|
|
4
|
+
import { registerBlockBindingsSource } from '@wordpress/blocks';
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* Internal dependencies
|
|
12
8
|
*/
|
|
13
9
|
import patternOverrides from './pattern-overrides';
|
|
14
10
|
import postMeta from './post-meta';
|
|
15
|
-
import { unlock } from '../lock-unlock';
|
|
16
11
|
|
|
17
12
|
/**
|
|
18
13
|
* Function to register core block bindings sources provided by the editor.
|
|
@@ -28,29 +23,3 @@ export function registerCoreBlockBindingsSources() {
|
|
|
28
23
|
registerBlockBindingsSource( patternOverrides );
|
|
29
24
|
registerBlockBindingsSource( postMeta );
|
|
30
25
|
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Function to bootstrap core block bindings sources defined in the server.
|
|
34
|
-
*
|
|
35
|
-
* @param {Object} sources Object containing the sources to bootstrap.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```js
|
|
39
|
-
* import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
|
|
40
|
-
*
|
|
41
|
-
* bootstrapBlockBindingsSourcesFromServer( sources );
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export function bootstrapBlockBindingsSourcesFromServer( sources ) {
|
|
45
|
-
if ( sources ) {
|
|
46
|
-
const { addBootstrappedBlockBindingsSource } = unlock(
|
|
47
|
-
dispatch( blocksStore )
|
|
48
|
-
);
|
|
49
|
-
for ( const [ name, args ] of Object.entries( sources ) ) {
|
|
50
|
-
addBootstrappedBlockBindingsSource( {
|
|
51
|
-
name,
|
|
52
|
-
...args,
|
|
53
|
-
} );
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -139,6 +139,7 @@ function Header( {
|
|
|
139
139
|
// when the publish sidebar has been closed.
|
|
140
140
|
<PostSavedState forceIsDirty={ forceIsDirty } />
|
|
141
141
|
) }
|
|
142
|
+
|
|
142
143
|
<PreviewDropdown
|
|
143
144
|
forceIsAutosaveable={ forceIsDirty }
|
|
144
145
|
disabled={ isNestedEntity }
|
|
@@ -149,7 +150,9 @@ function Header( {
|
|
|
149
150
|
/>
|
|
150
151
|
<PostViewLink />
|
|
151
152
|
|
|
152
|
-
{ isEditorIframed && isWideViewport &&
|
|
153
|
+
{ isEditorIframed && isWideViewport && (
|
|
154
|
+
<ZoomOutToggle disabled={ forceDisableBlockTools } />
|
|
155
|
+
) }
|
|
153
156
|
|
|
154
157
|
{ ( isWideViewport || ! showIconLabels ) && (
|
|
155
158
|
<PinnedItems.Slot scope="core" />
|
|
@@ -164,40 +164,47 @@ export const ExperimentalEditorProvider = withRegistryProvider(
|
|
|
164
164
|
BlockEditorProviderComponent = ExperimentalBlockEditorProvider,
|
|
165
165
|
__unstableTemplate: template,
|
|
166
166
|
} ) => {
|
|
167
|
-
const { editorSettings, selection, isReady, mode,
|
|
168
|
-
useSelect(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
const { editorSettings, selection, isReady, mode, postTypeEntities } =
|
|
168
|
+
useSelect(
|
|
169
|
+
( select ) => {
|
|
170
|
+
const {
|
|
171
|
+
getEditorSettings,
|
|
172
|
+
getEditorSelection,
|
|
173
|
+
getRenderingMode,
|
|
174
|
+
__unstableIsEditorReady,
|
|
175
|
+
} = select( editorStore );
|
|
176
|
+
const { getEntitiesConfig } = select( coreStore );
|
|
176
177
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
178
|
+
return {
|
|
179
|
+
editorSettings: getEditorSettings(),
|
|
180
|
+
isReady: __unstableIsEditorReady(),
|
|
181
|
+
mode: getRenderingMode(),
|
|
182
|
+
selection: getEditorSelection(),
|
|
183
|
+
postTypeEntities:
|
|
184
|
+
post.type === 'wp_template'
|
|
185
|
+
? getEntitiesConfig( 'postType' )
|
|
186
|
+
: null,
|
|
187
|
+
};
|
|
188
|
+
},
|
|
189
|
+
[ post.type ]
|
|
190
|
+
);
|
|
185
191
|
const shouldRenderTemplate = !! template && mode !== 'post-only';
|
|
186
192
|
const rootLevelPost = shouldRenderTemplate ? template : post;
|
|
187
193
|
const defaultBlockContext = useMemo( () => {
|
|
188
194
|
const postContext = {};
|
|
189
|
-
// If it is a template, try to inherit the post type from the
|
|
195
|
+
// If it is a template, try to inherit the post type from the name.
|
|
190
196
|
if ( post.type === 'wp_template' ) {
|
|
191
197
|
if ( post.slug === 'page' ) {
|
|
192
198
|
postContext.postType = 'page';
|
|
193
199
|
} else if ( post.slug === 'single' ) {
|
|
194
200
|
postContext.postType = 'post';
|
|
195
201
|
} else if ( post.slug.split( '-' )[ 0 ] === 'single' ) {
|
|
196
|
-
// If the slug is single-{postType}, infer the post type from the
|
|
197
|
-
const
|
|
198
|
-
|
|
202
|
+
// If the slug is single-{postType}, infer the post type from the name.
|
|
203
|
+
const postTypeNames =
|
|
204
|
+
postTypeEntities?.map( ( entity ) => entity.name ) ||
|
|
205
|
+
[];
|
|
199
206
|
const match = post.slug.match(
|
|
200
|
-
`^single-(${
|
|
207
|
+
`^single-(${ postTypeNames.join( '|' ) })(?:-.+)?$`
|
|
201
208
|
);
|
|
202
209
|
if ( match ) {
|
|
203
210
|
postContext.postType = match[ 1 ];
|
|
@@ -222,9 +229,10 @@ export const ExperimentalEditorProvider = withRegistryProvider(
|
|
|
222
229
|
shouldRenderTemplate,
|
|
223
230
|
post.id,
|
|
224
231
|
post.type,
|
|
232
|
+
post.slug,
|
|
225
233
|
rootLevelPost.type,
|
|
226
234
|
rootLevelPost.slug,
|
|
227
|
-
|
|
235
|
+
postTypeEntities,
|
|
228
236
|
] );
|
|
229
237
|
const { id, type } = rootLevelPost;
|
|
230
238
|
const blockEditorSettings = useBlockEditorSettings(
|
|
@@ -6,6 +6,7 @@ import { useDispatch, useSelect } from '@wordpress/data';
|
|
|
6
6
|
import { __ } from '@wordpress/i18n';
|
|
7
7
|
import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
|
|
8
8
|
import { useEffect, useRef } from '@wordpress/element';
|
|
9
|
+
import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Internal dependencies
|
|
@@ -13,6 +14,7 @@ import { useEffect, useRef } from '@wordpress/element';
|
|
|
13
14
|
import { store as editorStore } from '../../store';
|
|
14
15
|
import PostTextEditor from '../post-text-editor';
|
|
15
16
|
import PostTitleRaw from '../post-title/post-title-raw';
|
|
17
|
+
import { unlock } from '../../lock-unlock';
|
|
16
18
|
|
|
17
19
|
export default function TextEditor( { autoFocus = false } ) {
|
|
18
20
|
const { switchEditorMode } = useDispatch( editorStore );
|
|
@@ -26,13 +28,20 @@ export default function TextEditor( { autoFocus = false } ) {
|
|
|
26
28
|
};
|
|
27
29
|
}, [] );
|
|
28
30
|
|
|
31
|
+
const { resetZoomLevel, __unstableSetEditorMode } = unlock(
|
|
32
|
+
useDispatch( blockEditorStore )
|
|
33
|
+
);
|
|
34
|
+
|
|
29
35
|
const titleRef = useRef();
|
|
30
36
|
useEffect( () => {
|
|
37
|
+
resetZoomLevel();
|
|
38
|
+
__unstableSetEditorMode( 'edit' );
|
|
39
|
+
|
|
31
40
|
if ( autoFocus ) {
|
|
32
41
|
return;
|
|
33
42
|
}
|
|
34
43
|
titleRef?.current?.focus();
|
|
35
|
-
}, [ autoFocus ] );
|
|
44
|
+
}, [ autoFocus, resetZoomLevel, __unstableSetEditorMode ] );
|
|
36
45
|
|
|
37
46
|
return (
|
|
38
47
|
<div className="editor-text-editor">
|
|
@@ -14,7 +14,7 @@ import { store as preferencesStore } from '@wordpress/preferences';
|
|
|
14
14
|
*/
|
|
15
15
|
import { unlock } from '../../lock-unlock';
|
|
16
16
|
|
|
17
|
-
const ZoomOutToggle = () => {
|
|
17
|
+
const ZoomOutToggle = ( { disabled } ) => {
|
|
18
18
|
const { isZoomOut, showIconLabels } = useSelect( ( select ) => ( {
|
|
19
19
|
isZoomOut: unlock( select( blockEditorStore ) ).isZoomOut(),
|
|
20
20
|
showIconLabels: select( preferencesStore ).get(
|
|
@@ -38,6 +38,8 @@ const ZoomOutToggle = () => {
|
|
|
38
38
|
|
|
39
39
|
return (
|
|
40
40
|
<Button
|
|
41
|
+
accessibleWhenDisabled
|
|
42
|
+
disabled={ disabled }
|
|
41
43
|
onClick={ handleZoomOut }
|
|
42
44
|
icon={ zoomOutIcon }
|
|
43
45
|
label={ __( 'Toggle Zoom Out' ) }
|
package/src/private-apis.js
CHANGED
|
@@ -23,10 +23,7 @@ import {
|
|
|
23
23
|
mergeBaseAndUserConfigs,
|
|
24
24
|
GlobalStylesProvider,
|
|
25
25
|
} from './components/global-styles-provider';
|
|
26
|
-
import {
|
|
27
|
-
registerCoreBlockBindingsSources,
|
|
28
|
-
bootstrapBlockBindingsSourcesFromServer,
|
|
29
|
-
} from './bindings/api';
|
|
26
|
+
import { registerCoreBlockBindingsSources } from './bindings/api';
|
|
30
27
|
|
|
31
28
|
const { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;
|
|
32
29
|
|
|
@@ -47,7 +44,6 @@ lock( privateApis, {
|
|
|
47
44
|
ViewMoreMenuGroup,
|
|
48
45
|
ResizableEditor,
|
|
49
46
|
registerCoreBlockBindingsSources,
|
|
50
|
-
bootstrapBlockBindingsSourcesFromServer,
|
|
51
47
|
|
|
52
48
|
// This is a temporary private API while we're updating the site editor to use EditorProvider.
|
|
53
49
|
interfaceStore,
|
package/src/store/actions.js
CHANGED
|
@@ -255,7 +255,11 @@ export const savePost =
|
|
|
255
255
|
|
|
256
256
|
if ( ! error ) {
|
|
257
257
|
try {
|
|
258
|
-
await doActionAsync(
|
|
258
|
+
await doActionAsync(
|
|
259
|
+
'editor.savePost',
|
|
260
|
+
{ id: previousRecord.id },
|
|
261
|
+
options
|
|
262
|
+
);
|
|
259
263
|
} catch ( err ) {
|
|
260
264
|
error = err;
|
|
261
265
|
}
|