ace2_inner: Delete unnecessary `innerdocbody` variable
parent
7d807d2fc5
commit
e1a024847c
|
@ -3543,8 +3543,7 @@ function Ace2Inner(editorInfo, cssManagers) {
|
||||||
// but as it's non-text type the line-height/margins might not be present and it
|
// but as it's non-text type the line-height/margins might not be present and it
|
||||||
// could be that this breaks a theme that has a different default line height..
|
// could be that this breaks a theme that has a different default line height..
|
||||||
// So instead of using an integer here we get the value from the Editor CSS.
|
// So instead of using an integer here we get the value from the Editor CSS.
|
||||||
const innerdocbody = document.body;
|
const innerdocbodyStyles = getComputedStyle(document.body);
|
||||||
const innerdocbodyStyles = getComputedStyle(innerdocbody);
|
|
||||||
const defaultLineHeight = parseInt(innerdocbodyStyles['line-height']);
|
const defaultLineHeight = parseInt(innerdocbodyStyles['line-height']);
|
||||||
|
|
||||||
let docLine = document.body.firstChild;
|
let docLine = document.body.firstChild;
|
||||||
|
|
Loading…
Reference in New Issue