mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 19:37:28 +00:00
Update editor (#4764)
* update seafile-editor * update md-editor * add translate
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MarkdownViewer from '@seafile/seafile-editor/dist/viewer/markdown-viewer';
|
||||
import { gettext, repoID, slug, serviceURL, isPublicWiki, siteRoot, sharedToken } from '../utils/constants';
|
||||
import { gettext, repoID, slug, serviceURL, isPublicWiki, siteRoot, sharedToken, mediaUrl } from '../utils/constants';
|
||||
import { Card, CardTitle, CardText } from 'reactstrap';
|
||||
import Loading from './loading';
|
||||
import { seafileAPI } from '../utils/seafile-api';
|
||||
@@ -196,6 +196,7 @@ class WikiMarkdownViewer extends React.Component {
|
||||
return (
|
||||
<MarkdownViewer
|
||||
showTOC={isTOCShow}
|
||||
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
|
||||
markdownContent={this.props.markdownContent}
|
||||
activeTitleIndex={this.state.activeTitleIndex}
|
||||
onContentRendered={this.onContentRendered}
|
||||
@@ -207,6 +208,7 @@ class WikiMarkdownViewer extends React.Component {
|
||||
return (
|
||||
<MarkdownViewer
|
||||
showTOC={isTOCShow}
|
||||
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
|
||||
markdownContent={this.props.markdownContent}
|
||||
activeTitleIndex={this.state.activeTitleIndex}
|
||||
onContentRendered={this.onContentRendered}
|
||||
|
Reference in New Issue
Block a user