Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/components/RichTextArea/RichTextArea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class RichTextArea extends React.Component {
editorState: EditorState.push(this.state.editorState, EditorState.createEmpty().getCurrentContent()),
currentMDContent: null,
oldMDContent: null,
isPrivate: false
isPrivate: false,
rawFiles: []
})
}

Expand All @@ -168,7 +169,7 @@ class RichTextArea extends React.Component {
let isEditor = false
let isCloseButton = false
const title = this.state.titleValue
const hasContent = (title && title.trim().length > 0) || this.state.editorState.getCurrentContent().hasText()
const hasContent = (title && title.trim().length > 0) || this.state.editorState.getCurrentContent().hasText() || this.state.rawFiles.length > 0

do {
if (currNode.className
Expand All @@ -188,7 +189,8 @@ class RichTextArea extends React.Component {
titleValue: '',
editorState: EditorState.createEmpty(),
currentMDContent: null,
oldMDContent: null
oldMDContent: null,
rawFiles: []
})
}

Expand Down