Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
condenser
Commits
3338a674
Commit
3338a674
authored
8 years ago
by
Tim
Browse files
Options
Downloads
Patches
Plain Diff
remove old cleanup code and fix button disable
parent
7364882a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/components/elements/MediumEditor.jsx
+1
-1
1 addition, 1 deletion
app/components/elements/MediumEditor.jsx
app/components/elements/ReactMediumEditor.jsx
+1
-4
1 addition, 4 deletions
app/components/elements/ReactMediumEditor.jsx
with
2 additions
and
5 deletions
app/components/elements/MediumEditor.jsx
+
1
−
1
View file @
3338a674
...
@@ -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
>
}
...
...
This diff is collapsed.
Click to expand it.
app/components/elements/ReactMediumEditor.jsx
+
1
−
4
View file @
3338a674
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment