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

update sdoc editor version

This commit is contained in:
杨顺强
2024-07-08 15:54:29 +08:00
parent d6d528d69e
commit 22bcc31393
3 changed files with 10 additions and 10 deletions

View File

@@ -16,7 +16,7 @@
"@gatsbyjs/reach-router": "1.3.9",
"@seafile/react-image-lightbox": "2.0.2",
"@seafile/resumablejs": "1.1.16",
"@seafile/sdoc-editor": "1.0.12",
"@seafile/sdoc-editor": "1.0.14",
"@seafile/seafile-calendar": "0.0.12",
"@seafile/seafile-editor": "1.0.99",
"@seafile/sf-metadata-ui-component": "0.0.10",
@@ -4649,9 +4649,9 @@
"integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig=="
},
"node_modules/@seafile/sdoc-editor": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-1.0.12.tgz",
"integrity": "sha512-fU/evHQI29BQjZeyGmwlQDuhGCAeqFron5dL+N66+4ZNVnuxWRmaL+igLKx6kJssZvKQlQaoNT8dRbNuu9p0zg==",
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-1.0.14.tgz",
"integrity": "sha512-Aq/Ljj1rFzQ9oXqP5hQQm/I09ripTcsZF0GjV0wkx7NoYjmOvRHl6lK55fAbv22j8MJSQz4zGEVT2w8o00YOfg==",
"dependencies": {
"@seafile/print-js": "1.6.5",
"@seafile/react-image-lightbox": "2.0.4",
@@ -31939,9 +31939,9 @@
"integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig=="
},
"@seafile/sdoc-editor": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-1.0.12.tgz",
"integrity": "sha512-fU/evHQI29BQjZeyGmwlQDuhGCAeqFron5dL+N66+4ZNVnuxWRmaL+igLKx6kJssZvKQlQaoNT8dRbNuu9p0zg==",
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-1.0.14.tgz",
"integrity": "sha512-Aq/Ljj1rFzQ9oXqP5hQQm/I09ripTcsZF0GjV0wkx7NoYjmOvRHl6lK55fAbv22j8MJSQz4zGEVT2w8o00YOfg==",
"requires": {
"@seafile/print-js": "1.6.5",
"@seafile/react-image-lightbox": "2.0.4",

View File

@@ -11,7 +11,7 @@
"@gatsbyjs/reach-router": "1.3.9",
"@seafile/react-image-lightbox": "2.0.2",
"@seafile/resumablejs": "1.1.16",
"@seafile/sdoc-editor": "1.0.12",
"@seafile/sdoc-editor": "1.0.14",
"@seafile/seafile-calendar": "0.0.12",
"@seafile/seafile-editor": "1.0.99",
"@seafile/sf-metadata-ui-component": "0.0.10",

View File

@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { SdocWikiViewer } from '@seafile/sdoc-editor';
import { SdocWikiEditor } from '@seafile/sdoc-editor';
import { gettext, username } from '../../utils/constants';
import Loading from '../../components/loading';
import { Utils } from '../../utils/utils';
@@ -84,7 +84,7 @@ class MainPanel extends Component {
<div className='sdoc-scroll-container' id='sdoc-scroll-container' ref={this.scrollRef}>
<div className='wiki-editor-container'>
<PageHeader onUpdatePage={onUpdatePage} currentPageConfig={currentPageConfig} />
<SdocWikiViewer
<SdocWikiEditor
document={this.props.editorContent}
docUuid={this.state.docUuid}
isWikiReadOnly={isReadOnly}