Skip to content
Snippets Groups Projects
Commit 3338a674 authored by Tim's avatar Tim
Browse files

remove old cleanup code and fix button disable

parent 7364882a
No related branches found
No related tags found
No related merge requests found
...@@ -330,7 +330,7 @@ class MediumEditor extends React.Component { ...@@ -330,7 +330,7 @@ class MediumEditor extends React.Component {
</div> </div>
<div className={vframe_section_shrink_class}> <div className={vframe_section_shrink_class}>
{!loading && {!loading &&
<button type="submit" className="button" disabled={submitting} <button type="submit" className="button" disabled={submitting || !valid}
tabIndex={4}>{isEdit ? 'Update Post' : postLabel}</button> tabIndex={4}>{isEdit ? 'Update Post' : postLabel}</button>
} }
{loading && <span><br /><LoadingIndicator type="circle" /></span>} {loading && <span><br /><LoadingIndicator type="circle" /></span>}
......
...@@ -82,9 +82,6 @@ class ReactMediumEditor extends React.Component { ...@@ -82,9 +82,6 @@ class ReactMediumEditor extends React.Component {
const editor = this.medium const editor = this.medium
const allContents = editor.serialize() // mediumInsert plugin const allContents = editor.serialize() // mediumInsert plugin
let elContent = allContents["element-0"].value let elContent = allContents["element-0"].value
// https://github.com/orthes/medium-editor-insert-plugin/issues/341
elContent = elContent.replace('<div class="medium-insert-images-progress"></div>', '')
elContent = elContent.replace(' class="medium-insert-images medium-insert-active"', '')
return elContent return elContent
}) })
} }
...@@ -134,4 +131,4 @@ export default connect( ...@@ -134,4 +131,4 @@ export default connect(
}); });
}, },
}) })
)(ReactMediumEditor) )(ReactMediumEditor)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment