|
|
@@ -26,7 +26,6 @@ import { CrowiRequest } from '~/interfaces/crowi-request';
|
|
|
// import { useIndentSize } from '~/stores/editor';
|
|
|
// import { useRendererSettings } from '~/stores/renderer';
|
|
|
// import { EditorMode, useEditorMode, useIsMobile } from '~/stores/ui';
|
|
|
-import { EditorConfig } from '~/interfaces/editor-settings';
|
|
|
import { CustomWindow } from '~/interfaces/global';
|
|
|
import { RendererConfig } from '~/interfaces/services/renderer';
|
|
|
import { ISidebarConfig } from '~/interfaces/sidebar-config';
|
|
|
@@ -65,7 +64,7 @@ import {
|
|
|
useIsAclEnabled, useIsUserPage, useIsNotCreatable,
|
|
|
useCsrfToken, useIsSearchScopeChildrenAsDefault, useCurrentPageId, useCurrentPathname,
|
|
|
useIsSlackConfigured, useIsBlinkedHeaderAtBoot, useRendererConfig, useEditingMarkdown,
|
|
|
- useEditorConfig, useIsAllReplyShown,
|
|
|
+ useIsAllReplyShown,
|
|
|
} from '../stores/context';
|
|
|
import { useXss } from '../stores/xss';
|
|
|
|
|
|
@@ -152,7 +151,6 @@ type Props = CommonProps & {
|
|
|
// highlightJsStyle: string,
|
|
|
isAllReplyShown: boolean,
|
|
|
// isContainerFluid: boolean,
|
|
|
- editorConfig: EditorConfig,
|
|
|
isEnabledStaleNotification: boolean,
|
|
|
// isEnabledLinebreaks: boolean,
|
|
|
// isEnabledLinebreaksInComments: boolean,
|
|
|
@@ -184,7 +182,6 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
|
|
|
|
|
|
// commons
|
|
|
useXss(new Xss());
|
|
|
- useEditorConfig(props.editorConfig);
|
|
|
useCsrfToken(props.csrfToken);
|
|
|
|
|
|
// UserUISettings
|
|
|
@@ -495,12 +492,6 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
// props.isEnabledLinebreaks = configManager.getConfig('markdown', 'markdown:isEnabledLinebreaks');
|
|
|
// props.isEnabledLinebreaksInComments = configManager.getConfig('markdown', 'markdown:isEnabledLinebreaksInComments');
|
|
|
props.disableLinkSharing = configManager.getConfig('crowi', 'security:disableLinkSharing');
|
|
|
- props.editorConfig = {
|
|
|
- upload: {
|
|
|
- isImageUploaded: crowi.fileUploadService.getIsUploadable(),
|
|
|
- isFileUploaded: crowi.fileUploadService.getFileUploadEnabled(),
|
|
|
- },
|
|
|
- };
|
|
|
// props.adminPreferredIndentSize = configManager.getConfig('markdown', 'markdown:adminPreferredIndentSize');
|
|
|
// props.isIndentSizeForced = configManager.getConfig('markdown', 'markdown:isIndentSizeForced');
|
|
|
|