Sha256: 8493434d9d4fe38beeb02b66ca63a3cfa1b204c4afde4fc76a3e0bcb6136ef63

Contents?: true

Size: 1.5 KB

Versions: 102

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("Ctrl+Alt+F","",c)}),a.on("remove",function(){f&&j.unbind(window,"resize",f)}),a.addCommand("mceFullScreen",c),a.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+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:"Ctrl+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

102 entries across 102 versions & 4 rubygems

Version Path
optimacms-0.1.61 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.30 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.29 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.23 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.15 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.12 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.11 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
mirador_rails-0.3.3 vendor/assets/plugins/plugins/fullscreen/plugin.min.js
optimacms-0.3.9 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
mirador_rails-0.3.2 vendor/assets/plugins/plugins/fullscreen/plugin.min.js
mirador_rails-0.3.1 vendor/assets/plugins/plugins/fullscreen/plugin.min.js
optimacms-0.3.8 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.7 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.6 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.3.5 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
mirador_rails-0.3.0 vendor/assets/plugins/plugins/fullscreen/plugin.min.js
mirador_rails-0.1.1 vendor/assets/plugins/plugins/fullscreen/plugin.min.js
mirador_rails-0.2.1 vendor/assets/plugins/plugins/fullscreen/plugin.min.js
optimacms-0.2.26 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js
optimacms-0.2.25 spec/dummy/public/js/tinymce/plugins/fullscreen/plugin.min.js