Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
1d425cbc
Commit
1d425cbc
authored
Mar 23, 2022
by
enured
Browse files
CodeMirror not highlighting in Brave and Opera fixed.
parent
1e717dc3
Pipeline
#6987
passed with stage
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/Helper/codemirror.js
View file @
1d425cbc
...
...
@@ -93,7 +93,7 @@ $(document).ready(function(){
$
(
formContent
[
0
]).
removeAttr
(
"
class
"
);
$
(
formContent
[
0
]).
addClass
(
"
externWindow
"
);
var
idNameForWindow
=
$
(
formContent
[
0
]).
attr
(
'
id
'
);
htmlContent
=
$
(
"
head
"
).
html
()
+
$
(
formContent
)[
0
].
outerHTML
;
htmlContent
=
'
<!DOCTYPE html>
'
+
$
(
"
head
"
).
html
()
+
$
(
formContent
)[
0
].
outerHTML
;
newWindow
(
idNameForWindow
);
}
...
...
@@ -163,6 +163,7 @@ $(document).ready(function(){
// This added class is needed to not fire the script more than once
$
(
this
).
addClass
(
"
cm-done
"
);
// For the extern window we use the whole place to show CodeMirror
$
(
externWindow
).
css
(
'
height
'
,
'
100%
'
);
$
(
this
).
next
().
css
(
'
height
'
,
'
100%
'
);
}
);
...
...
Write
Preview
Supports
Markdown
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