1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +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

@@ -3,7 +3,7 @@ import { SeafileEditor } from '@seafile/seafile-editor/dist/editor/editor.js';
import 'whatwg-fetch';
import { seafileAPI } from './utils/seafile-api';
import { Utils } from './utils/utils';
import { gettext, isDocs } from './utils/constants';
import { gettext, isDocs, mediaUrl } from './utils/constants';
import io from 'socket.io-client';
import toaster from './components/toast';
import ModalPortal from './components/modal-portal';
@@ -780,6 +780,7 @@ class MarkdownEditor extends React.Component {
toggleLockFile={this.toggleLockFile}
/>
<SeafileEditor
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
fileInfo={this.state.fileInfo}
markdownContent={this.state.markdownContent}
editorApi={editorApi}