forked from ZwiiCMS-Team/ZwiiCMS
1 line
1.7 KiB
JavaScript
1 line
1.7 KiB
JavaScript
![]() |
!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){var e=t.getContainer();if(!t.inline&&e&&e.offsetParent){var i="";!1!==t.settings.statusbar&&(i=e.querySelector(".mce-statusbar"));var s=e.querySelector(".mce-top-part");n()?(e.style.paddingTop=s.offsetHeight+"px",o()?(s.style.top=null,s.style.width="100%",s.style.position="absolute",s.style.bottom=i?i.offsetHeight+"px":0):(s.style.bottom=null,s.style.top=r+"px",s.style.position="fixed",s.style.width=e.clientWidth+"px")):(e.style.paddingTop=0,s.style.position="relative",s.style.top=null,s.style.width=null,s.style.borderBottom=null)}}function n(){return t.getContainer().getBoundingClientRect().top<r}function o(){var e=t.getContainer(),n=e.getBoundingClientRect().top,o=e.querySelector(".mce-statusbar"),i=e.querySelector(".mce-top-part"),s=o?o.offsetHeight:0,u=i?i.offsetHeight:0;return n<-(e.offsetHeight-u-s)+r}var r=t.settings.sticky_offset?t.settings.sticky_offset:0;t.on("init",function(){e()}),window.addEventListener("scroll",function(){e()})};e.default=o},function(t,e,n){"use strict";var o=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o);tinymce.PluginManager.add("stickytoolbar",r.default)}]);
|