Вход Регистрация
Файл: Main Website Files/assets/js/froala_editor/js/plugins/fullscreen.min.js
Строк: 89
<?php
/*!
 * froala_editor v1.2.6 (http://editor.froala.com)
 * License http://editor.froala.com/license
 * Copyright 2014-2015 Froala Labs
 */
!function(a){a.Editable.prototype.refreshFullscreen=function(){this.$box.hasClass("fr-fullscreen")?this.$editor.find('[data-cmd="fullscreen"]').addClass("active"):this.$editor.find('[data-cmd="fullscreen"]').removeClass("active")},a.Editable.commands=a.extend(a.Editable.commands,{fullscreen:{icon:"fa fa-expand",title:"Fullscreen",callback:function(){if(this.$box.toggleClass("fr-fullscreen"),a("body").toggleClass("fr-fullscreen"),this.$editor.find('[data-cmd="fullscreen"] i').toggleClass("fa-expand fa-compress"),this.refreshFullscreen(),this.$box.hasClass("fr-fullscreen"))this.$fullscreen_marker=a("<div>"),this.$box.after(this.$fullscreen_marker),this.$box.appendTo("body"),this.computeElementHeight();else{this.$wrapper.css("height",""),this.$element.css("minHeight",""),this.setDimensions(),this.options.scrollableContainer=this.oldScrollableContainer;var b=this.$document.find(this.options.scrollableContainer);b.append(this.$popup_editor),this.$fullscreen_marker.replaceWith(this.$box)}},refresh:a.Editable.prototype.refreshFullscreen}}),a.Editable.prototype.computeElementHeight=function(){var a=this.$window.height()-this.$editor.outerHeight()-parseFloat(this.$wrapper.css("padding-top"),10)-parseFloat(this.$wrapper.css("padding-bottom"),10)-parseFloat((this.$wrapper||this.$element).css("border-top-width"),10)-parseFloat((this.$wrapper||this.$element).css("border-bottom-width"),10)+2;this.$wrapper.css("height",a),this.$element.css("minHeight",a-parseInt(this.$element.css("padding-top"),10)-parseInt(this.$element.css("padding-bottom"),10)),this.$element.css("maxHeight",""),this.$wrapper.css("maxHeight",""),this.oldScrollableContainer=this.options.scrollableContainer,this.options.scrollableContainer=this.$wrapper,this.$wrapper.append(this.$popup_editor)},a.Editable.prototype.initFullscreen=function(){this.$window.on("resize",a.proxy(function(){this.$box.hasClass("fr-fullscreen")&&this.computeElementHeight()},this))},a.Editable.initializers.push(a.Editable.prototype.initFullscreen)}(jQuery);
?>
Онлайн: 2
Реклама