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
tinymce-rails-4.2.5 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
tinymce-rails-4.2.4 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
tinymce-rails-4.2.3 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
alchemy_cms-3.2.0 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js
tinymce-rails-4.2.2 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
tinymce-rails-4.2.1 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
tinymce-rails-4.1.10 vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js
boot-cli-1.0.0 lib/templates/wordpress/wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js
boot-cli-0.3.1 lib/templates/wordpress/wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js
boot-cli-0.3.0 lib/templates/wordpress/wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js