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

optimize code

This commit is contained in:
shanshuirenjia
2022-05-23 18:26:47 +08:00
parent 6c89f2c11d
commit 0663f6c9a6

View File

@@ -40,7 +40,6 @@ class SeafileEditor extends React.Component {
const { mode, markdownContent, isDraft } = this.props;
const isEditMode = mode === 'editor' || isDraft;
const richValue = isEditMode ? deserialize(markdownContent) : deserialize('');
console.log(richValue);
this.state = {
initialPlainValue: '',
currentContent: markdownContent,
@@ -56,7 +55,6 @@ class SeafileEditor extends React.Component {
componentWillMount() {
if (this.props.editorMode === 'rich') {
const document = this.state.richValue;
console.log(document, 'dadad');
const firstNode = document[0];
/**
* if the markdown content is empty, the rich value contains