mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Merge pull request #6108 from artoscinote/ma_SCI_9184
Fix TinyMCE sticky header calculation [SCI-9184]
This commit is contained in:
commit
fb177765da
1 changed files with 3 additions and 4 deletions
7
app/javascript/packs/tiny_mce.js
vendored
7
app/javascript/packs/tiny_mce.js
vendored
|
@ -195,13 +195,12 @@ window.TinyMCE = (() => {
|
|||
document.location.hash = `${textAreaObject.data('objectType')}_${textAreaObject.data('objectId')}`;
|
||||
}
|
||||
|
||||
let topMenuHeight = $('.sci--navigation--top-menu-container') ? $('.sci--navigation--top-menu-container').height() : 0;
|
||||
let breadcrumbsHeight = $('.sci--layout-navigation-breadcrumbs') ? $('.sci--layout-navigation-breadcrumbs').height() : 0;
|
||||
let secondaryNavHeight = $('.content-header.sticky-header') ? $('.content-header.sticky-header').height() : 0;
|
||||
let topMenuHeight = $('.sci--navigation--top-menu-container').length ? $('.sci--navigation--top-menu-container').height() : 0;
|
||||
let breadcrumbsHeight = $('.sci--layout-navigation-breadcrumbs').length ? $('.sci--layout-navigation-breadcrumbs').height() : 0;
|
||||
let secondaryNavHeight = $('.content-header.sticky-header').length ? $('.content-header.sticky-header').height() : 0;
|
||||
|
||||
editorToolbaroffset = topMenuHeight + breadcrumbsHeight + secondaryNavHeight;
|
||||
|
||||
|
||||
return tinyMCE.init({
|
||||
cache_suffix: '?v=6.5.1-19', // This suffix should be changed any time library is updated
|
||||
selector,
|
||||
|
|
Loading…
Reference in a new issue