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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user