Sha256: 9be3445a9a9beab6cba3b6de2f2a368ea3ee8cd6823f48d1920c03d4e4c9c05e

Contents?: true

Size: 1.5 KB

Versions: 30

Compression:

Stored size: 1.5 KB

Contents

tinymce.PluginManager.add("fullscreen",function(a){function b(){var a,b,c=window,d=document,e=d.body;return e.offsetWidth&&(a=e.offsetWidth,b=e.offsetHeight),c.innerWidth&&c.innerHeight&&(a=c.innerWidth,b=c.innerHeight),{w:a,h:b}}function c(){function c(){j.setStyle(m,"height",b().h-(l.clientHeight-m.clientHeight))}var k,l,m,n,o=document.body,p=document.documentElement;i=!i,l=a.getContainer(),k=l.style,m=a.getContentAreaContainer().firstChild,n=m.style,i?(d=n.width,e=n.height,n.width=n.height="100%",g=k.width,h=k.height,k.width=k.height="",j.addClass(o,"mce-fullscreen"),j.addClass(p,"mce-fullscreen"),j.addClass(l,"mce-fullscreen"),j.bind(window,"resize",c),c(),f=c):(n.width=d,n.height=e,g&&(k.width=g),h&&(k.height=h),j.removeClass(o,"mce-fullscreen"),j.removeClass(p,"mce-fullscreen"),j.removeClass(l,"mce-fullscreen"),j.unbind(window,"resize",f)),a.fire("FullscreenStateChanged",{state:i})}var d,e,f,g,h,i=!1,j=tinymce.DOM;return a.settings.inline?void 0:(a.on("init",function(){a.addShortcut("Meta+Alt+F","",c)}),a.on("remove",function(){f&&j.unbind(window,"resize",f)}),a.addCommand("mceFullScreen",c),a.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Meta+Alt+F",selectable:!0,onClick:c,onPostRender:function(){var b=this;a.on("FullscreenStateChanged",function(a){b.active(a.state)})},context:"view"}),a.addButton("fullscreen",{tooltip:"Fullscreen",shortcut:"Meta+Alt+F",onClick:c,onPostRender:function(){var b=this;a.on("FullscreenStateChanged",function(a){b.active(a.state)})}}),{isFullscreen:function(){return i}})});

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
goldencobra-2.3.4 app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullscreen/plugin.min.js
goldencobra-2.3.3 app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullscreen/plugin.min.js
alchemy_cms-3.4.2 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.4.1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.3.3 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.3.2 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.4.0 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.4.0.rc1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.3.1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.3.0 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.3.0.rc2 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.3.0.rc1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
alchemy_cms-3.2.1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
tinymce-rails-4.3.1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
tinymce-rails-4.3.0 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
tinymce-rails-4.2.8 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
tinymce-rails-4.2.7 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
lc_alchemy_cms-3.2.1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
lc_alchemy_cms-3.2.0 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
tinymce-rails-4.2.6 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js