|
|
@@ -21,6 +21,7 @@ import { apiv3Post } from '../util/apiv3-client';
|
|
|
const { isTrashPage } = pagePathUtils;
|
|
|
|
|
|
const logger = loggerFactory('growi:services:PageContainer');
|
|
|
+const globalEmitter = window.globalEmitter;
|
|
|
|
|
|
/**
|
|
|
* Service container related to Page
|
|
|
@@ -435,11 +436,7 @@ export default class PageContainer extends Container {
|
|
|
editorContainer.clearDraft(path);
|
|
|
this.updateStateAfterSave(res.page, res.tags, res.revision, editorMode);
|
|
|
|
|
|
- // Update PageEditor component
|
|
|
- if (editorMode !== EditorMode.Editor) {
|
|
|
- // eslint-disable-next-line no-undef
|
|
|
- globalEmitter.emit('updateEditorValue', markdown);
|
|
|
- }
|
|
|
+ globalEmitter.emit('updateEditorValue', markdown);
|
|
|
|
|
|
editorContainer.setState({ tags: res.tags });
|
|
|
|