1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 16:36:15 +00:00

Update editor (#4764)

* update seafile-editor

* update md-editor

* add translate
This commit is contained in:
songjiaqi1
2020-12-26 17:45:48 +08:00
committed by GitHub
parent d837293c56
commit 4cbbdcd725
19 changed files with 251 additions and 129 deletions

View File

@@ -4,7 +4,7 @@ import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import MarkdownViewer from '@seafile/seafile-editor/dist/viewer/markdown-viewer';
import Loading from '../../components/loading';
import { seafileAPI } from '../../utils/seafile-api';
import { gettext } from '../../utils/constants';
import { gettext, mediaUrl } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import toaster from '../toast';
@@ -49,7 +49,11 @@ class ReadmeDialog extends React.Component {
<ModalBody>
{this.state.isLoading ?
<Loading />:
<MarkdownViewer markdownContent={this.state.readmeContent} showTOC={false}/>
<MarkdownViewer
markdownContent={this.state.readmeContent}
showTOC={false}
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
/>
}
</ModalBody>
<ModalFooter>