mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
ace2_inner: Simplify document body selection
This commit is contained in:
parent
11c86e677a
commit
ec63c15a40
1 changed files with 1 additions and 1 deletions
|
@ -3543,7 +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.querySelector('#innerdocbody');
|
const innerdocbody = document.body;
|
||||||
const innerdocbodyStyles = getComputedStyle(innerdocbody);
|
const innerdocbodyStyles = getComputedStyle(innerdocbody);
|
||||||
const defaultLineHeight = parseInt(innerdocbodyStyles['line-height']);
|
const defaultLineHeight = parseInt(innerdocbodyStyles['line-height']);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue