mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
update seafile-editor version
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import React from 'react';
|
||||
import React, { Suspense } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { MarkdownViewer } from '@seafile/seafile-editor';
|
||||
import { I18nextProvider } from 'react-i18next';
|
||||
import i18n from '../../_i18n/i18n-seafile-editor';
|
||||
import { gettext, mediaUrl, serviceURL, sharedToken, slug } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import Loading from '../loading';
|
||||
@@ -91,7 +93,13 @@ class SeafileMarkdownViewer extends React.Component {
|
||||
...(isWiki && {beforeRenderCallback: this.modifyValueBeforeRender})
|
||||
};
|
||||
|
||||
return <MarkdownViewer {...props} />;
|
||||
return (
|
||||
<I18nextProvider i18n={ i18n }>
|
||||
<Suspense fallback={<Loading />}>
|
||||
<MarkdownViewer {...props} />
|
||||
</Suspense>
|
||||
</I18nextProvider>
|
||||
);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
Reference in New Issue
Block a user