Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
editoria
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yannis Barlas
editoria
Commits
d5f48b71
Commit
d5f48b71
authored
8 years ago
by
Alexandros Georgantas
Committed by
Yannis Barlas
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix of save functionality
parent
775dcdad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/components/SimpleEditor/SimpleEditor.jsx
+1
-1
1 addition, 1 deletion
app/components/SimpleEditor/SimpleEditor.jsx
app/components/SimpleEditor/SimpleEditorWrapper.jsx
+2
-3
2 additions, 3 deletions
app/components/SimpleEditor/SimpleEditorWrapper.jsx
with
3 additions
and
4 deletions
app/components/SimpleEditor/SimpleEditor.jsx
+
1
−
1
View file @
d5f48b71
...
...
@@ -77,7 +77,7 @@ export default class SimpleEditor extends React.Component {
const
exporter
=
new
SimpleExporter
(
config
)
const
convertedSource
=
exporter
.
exportDocument
(
source
)
onSave
(
convertedSource
)
return
onSave
(
convertedSource
)
}
// NOTE -- Theoretically, we shouldn't lock when the editor is in read only
...
...
This diff is collapsed.
Click to expand it.
app/components/SimpleEditor/SimpleEditorWrapper.jsx
+
2
−
3
View file @
d5f48b71
...
...
@@ -73,14 +73,13 @@ export class SimpleEditorWrapper extends React.Component {
const
{
fragment
}
=
this
.
props
fragment
.
source
=
source
this
.
update
(
fragment
)
// return callback()
return
this
.
update
(
fragment
)
}
update
(
newChapter
)
{
const
{
book
}
=
this
.
props
const
{
updateFragment
}
=
this
.
props
.
actions
updateFragment
(
book
,
newChapter
)
return
updateFragment
(
book
,
newChapter
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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