diff --git a/app/components/elements/MediumEditor.jsx b/app/components/elements/MediumEditor.jsx index 5a4539a449e8498b8b6cab17288170595b6beeb7..86bd3bc182ffb901f4c80b9d44ca914fdc8c031a 100644 --- a/app/components/elements/MediumEditor.jsx +++ b/app/components/elements/MediumEditor.jsx @@ -330,7 +330,7 @@ class MediumEditor extends React.Component { </div> <div className={vframe_section_shrink_class}> {!loading && - <button type="submit" className="button" disabled={submitting} + <button type="submit" className="button" disabled={submitting || !valid} tabIndex={4}>{isEdit ? 'Update Post' : postLabel}</button> } {loading && <span><br /><LoadingIndicator type="circle" /></span>} diff --git a/app/components/elements/ReactMediumEditor.jsx b/app/components/elements/ReactMediumEditor.jsx index b47b294ab3259af855b134e0374a7e4e0e872eaf..a1e85ec72262f956803798fdd6f8cda93359cc11 100644 --- a/app/components/elements/ReactMediumEditor.jsx +++ b/app/components/elements/ReactMediumEditor.jsx @@ -82,9 +82,6 @@ class ReactMediumEditor extends React.Component { const editor = this.medium const allContents = editor.serialize() // mediumInsert plugin 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 }) } @@ -134,4 +131,4 @@ export default connect( }); }, }) -)(ReactMediumEditor) \ No newline at end of file +)(ReactMediumEditor)