Sha256: 86fe9ba77c1bea0eceec4da98f3478f6472a1294b32528e9a147971aea32bcdd

Contents?: true

Size: 1.64 KB

Versions: 39

Compression:

Stored size: 1.64 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(){var a=tinymce.DOM.getViewPort();return{x:a.x,y:a.y}}function d(a){scrollTo(a.x,a.y)}function e(){function e(){m.setStyle(p,"height",b().h-(o.clientHeight-p.clientHeight))}var n,o,p,q,r=document.body,s=document.documentElement;l=!l,o=a.getContainer(),n=o.style,p=a.getContentAreaContainer().firstChild,q=p.style,l?(k=c(),f=q.width,g=q.height,q.width=q.height="100%",i=n.width,j=n.height,n.width=n.height="",m.addClass(r,"mce-fullscreen"),m.addClass(s,"mce-fullscreen"),m.addClass(o,"mce-fullscreen"),m.bind(window,"resize",e),e(),h=e):(q.width=f,q.height=g,i&&(n.width=i),j&&(n.height=j),m.removeClass(r,"mce-fullscreen"),m.removeClass(s,"mce-fullscreen"),m.removeClass(o,"mce-fullscreen"),m.unbind(window,"resize",h),d(k)),a.fire("FullscreenStateChanged",{state:l})}var f,g,h,i,j,k,l=!1,m=tinymce.DOM;return a.settings.inline?void 0:(a.on("init",function(){a.addShortcut("Ctrl+Shift+F","",e)}),a.on("remove",function(){h&&m.unbind(window,"resize",h)}),a.addCommand("mceFullScreen",e),a.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+Shift+F",selectable:!0,onClick:function(){e(),a.focus()},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:e,onPostRender:function(){var b=this;a.on("FullscreenStateChanged",function(a){b.active(a.state)})}}),{isFullscreen:function(){return l}})});

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.19 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.18 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.17 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.16 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.15 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.14 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.13 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.12 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.11 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.10 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.9 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.8 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.7 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.6 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.5 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.4 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.3 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.2 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js
wbase-0.3.1 lib/vendor/admin/tinymce/plugins/fullscreen/plugin.min.js