|
@@ -6,6 +6,8 @@ import React, {
|
|
|
import dynamic from 'next/dynamic';
|
|
import dynamic from 'next/dynamic';
|
|
|
// import { debounce } from 'throttle-debounce';
|
|
// import { debounce } from 'throttle-debounce';
|
|
|
|
|
|
|
|
|
|
+import { HtmlElementNode } from 'rehype-toc';
|
|
|
|
|
+
|
|
|
import { blinkSectionHeaderAtBoot } from '~/client/util/blink-section-header';
|
|
import { blinkSectionHeaderAtBoot } from '~/client/util/blink-section-header';
|
|
|
// import { getOptionsToSave } from '~/client/util/editor';
|
|
// import { getOptionsToSave } from '~/client/util/editor';
|
|
|
import {
|
|
import {
|
|
@@ -22,7 +24,6 @@ import {
|
|
|
import loggerFactory from '~/utils/logger';
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
|
|
import RevisionRenderer from './Page/RevisionRenderer';
|
|
import RevisionRenderer from './Page/RevisionRenderer';
|
|
|
-import { HtmlElementNode } from 'rehype-toc';
|
|
|
|
|
|
|
|
|
|
// TODO: import dynamically
|
|
// TODO: import dynamically
|
|
|
// import MarkdownTable from '~/client/models/MarkdownTable';
|
|
// import MarkdownTable from '~/client/models/MarkdownTable';
|
|
@@ -168,7 +169,7 @@ class PageSubstance extends React.Component<PageSubstanceProps> {
|
|
|
// const DrawioModal = dynamic(() => import('./PageEditor/DrawioModal'), { ssr: false });
|
|
// const DrawioModal = dynamic(() => import('./PageEditor/DrawioModal'), { ssr: false });
|
|
|
// const GridEditModal = dynamic(() => import('./PageEditor/GridEditModal'), { ssr: false });
|
|
// const GridEditModal = dynamic(() => import('./PageEditor/GridEditModal'), { ssr: false });
|
|
|
// const HandsontableModal = dynamic(() => import('./PageEditor/HandsontableModal'), { ssr: false });
|
|
// const HandsontableModal = dynamic(() => import('./PageEditor/HandsontableModal'), { ssr: false });
|
|
|
- // const LinkEditModal = dynamic(() => import('./PageEditor/LinkEditModal'), { ssr: false });
|
|
|
|
|
|
|
+ const LinkEditModal = dynamic(() => import('./PageEditor/LinkEditModal'), { ssr: false });
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className={`mb-5 ${isMobile ? 'page-mobile' : ''}`}>
|
|
<div className={`mb-5 ${isMobile ? 'page-mobile' : ''}`}>
|
|
@@ -180,7 +181,7 @@ class PageSubstance extends React.Component<PageSubstanceProps> {
|
|
|
{ !isGuestUser && (
|
|
{ !isGuestUser && (
|
|
|
<>
|
|
<>
|
|
|
{/* <GridEditModal ref={this.gridEditModal} /> */}
|
|
{/* <GridEditModal ref={this.gridEditModal} /> */}
|
|
|
- {/* <LinkEditModal ref={this.LinkEditModal} /> */}
|
|
|
|
|
|
|
+ <LinkEditModal ref={this.linkEditModal} />
|
|
|
{/* <HandsontableModal ref={this.handsontableModal} onSave={this.saveHandlerForHandsontableModal} /> */}
|
|
{/* <HandsontableModal ref={this.handsontableModal} onSave={this.saveHandlerForHandsontableModal} /> */}
|
|
|
{/* <DrawioModal ref={this.drawioModal} onSave={this.saveHandlerForDrawioModal} /> */}
|
|
{/* <DrawioModal ref={this.drawioModal} onSave={this.saveHandlerForDrawioModal} /> */}
|
|
|
</>
|
|
</>
|