From 3338a674b7578b25e650254fe08fd7015e0f4cad Mon Sep 17 00:00:00 2001
From: Tim <roadscape@users.noreply.github.com>
Date: Wed, 28 Sep 2016 15:19:31 -0400
Subject: [PATCH] remove old cleanup code and fix button disable

---
 app/components/elements/MediumEditor.jsx      | 2 +-
 app/components/elements/ReactMediumEditor.jsx | 5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/app/components/elements/MediumEditor.jsx b/app/components/elements/MediumEditor.jsx
index 5a4539a44..86bd3bc18 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 b47b294ab..a1e85ec72 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)
-- 
GitLab