Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9823fae9
Commit
9823fae9
authored
Oct 08, 2020
by
Denys Mishunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dispatch editor-ready only on success
parent
9f4ef4b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/editor/editor_lite.js
app/assets/javascripts/editor/editor_lite.js
+4
-4
No files found.
app/assets/javascripts/editor/editor_lite.js
View file @
9823fae9
...
...
@@ -51,7 +51,7 @@ export default class Editor {
const
extensionsArray
=
typeof
extensions
===
'
string
'
?
extensions
.
split
(
'
,
'
)
:
extensions
;
extensionsArray
.
forEach
(
ext
=>
{
const
prefix
=
ext
.
in
dexOf
(
'
/
'
)
===
-
1
?
'
editor/
'
:
'
'
;
const
prefix
=
ext
.
in
cludes
(
'
/
'
)
?
''
:
'
editor/
'
;
const
trimmedExt
=
ext
.
replace
(
/^
\/
/
,
''
).
trim
();
Editor
.
pushToImportsArray
(
promises
,
`~/
${
prefix
}${
trimmedExt
}
`
);
});
...
...
@@ -111,11 +111,11 @@ export default class Editor {
});
}
})
.
then
(()
=>
{
el
.
dispatchEvent
(
new
Event
(
'
editor-ready
'
));
})
.
catch
(
e
=>
{
throw
e
;
})
.
finally
(()
=>
{
el
.
dispatchEvent
(
new
Event
(
'
editor-ready
'
));
});
this
.
instances
.
push
(
instance
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment