mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 06:33:48 +00:00
update seafile-editor version
This commit is contained in:
9
frontend/package-lock.json
generated
9
frontend/package-lock.json
generated
@@ -18,7 +18,7 @@
|
|||||||
"@seafile/react-image-lightbox": "4.0.2",
|
"@seafile/react-image-lightbox": "4.0.2",
|
||||||
"@seafile/resumablejs": "1.1.16",
|
"@seafile/resumablejs": "1.1.16",
|
||||||
"@seafile/seafile-calendar": "0.0.28",
|
"@seafile/seafile-calendar": "0.0.28",
|
||||||
"@seafile/seafile-editor": "2.0.10",
|
"@seafile/seafile-editor": "2.0.11",
|
||||||
"@seafile/seafile-sdoc-editor": "2.0.9",
|
"@seafile/seafile-sdoc-editor": "2.0.9",
|
||||||
"@seafile/stldraw-editor": "1.0.1",
|
"@seafile/stldraw-editor": "1.0.1",
|
||||||
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
||||||
@@ -5690,9 +5690,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@seafile/seafile-editor": {
|
"node_modules/@seafile/seafile-editor": {
|
||||||
"version": "2.0.10",
|
"version": "2.0.11",
|
||||||
"resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-2.0.10.tgz",
|
"resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-2.0.11.tgz",
|
||||||
"integrity": "sha512-i32+d/xTday459hiCxEoDGtGWQrpiTQE2vuCATXSz6TLQgN+GGioF320qRHIaTKsLO08MxI9i59sCnU5fC2lBA==",
|
"integrity": "sha512-u8dkjrvBxrwU2FsyyR8k9MVfGviPknvdCke6PYMHdkO/pp3ZJbA4iRQXTrGao8TUZymC+nXiOHYJQqcunD46tA==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@seafile/react-image-lightbox": "4.0.2",
|
"@seafile/react-image-lightbox": "4.0.2",
|
||||||
"classnames": "2.3.2",
|
"classnames": "2.3.2",
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
"@seafile/react-image-lightbox": "4.0.2",
|
"@seafile/react-image-lightbox": "4.0.2",
|
||||||
"@seafile/resumablejs": "1.1.16",
|
"@seafile/resumablejs": "1.1.16",
|
||||||
"@seafile/seafile-calendar": "0.0.28",
|
"@seafile/seafile-calendar": "0.0.28",
|
||||||
"@seafile/seafile-editor": "2.0.10",
|
"@seafile/seafile-editor": "2.0.11",
|
||||||
"@seafile/seafile-sdoc-editor": "2.0.9",
|
"@seafile/seafile-sdoc-editor": "2.0.9",
|
||||||
"@seafile/stldraw-editor": "1.0.1",
|
"@seafile/stldraw-editor": "1.0.1",
|
||||||
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
||||||
|
@@ -2,7 +2,7 @@ import React, { useState, useRef, useCallback, useLayoutEffect, useEffect } from
|
|||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
import isHotkey from 'is-hotkey';
|
import isHotkey from 'is-hotkey';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { processor } from '@seafile/seafile-editor';
|
import { processorWithMath } from '@seafile/seafile-editor';
|
||||||
import SeafileCodeMirror from './code-mirror';
|
import SeafileCodeMirror from './code-mirror';
|
||||||
import HeaderToolbar from '../markdown-editor/header-toolbar/header-toolbar';
|
import HeaderToolbar from '../markdown-editor/header-toolbar/header-toolbar';
|
||||||
import editorApi from '../markdown-editor/editor-api';
|
import editorApi from '../markdown-editor/editor-api';
|
||||||
@@ -68,7 +68,7 @@ const PlainMarkdownEditor = (props) => {
|
|||||||
|
|
||||||
const setContent = useCallback((markdownContent) => {
|
const setContent = useCallback((markdownContent) => {
|
||||||
setEditorValue(markdownContent);
|
setEditorValue(markdownContent);
|
||||||
processor.process(markdownContent, (error, vfile) => {
|
processorWithMath.process(markdownContent, (error, vfile) => {
|
||||||
var html = String(vfile);
|
var html = String(vfile);
|
||||||
setPreviewValue(html);
|
setPreviewValue(html);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user