[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: plugin.js
/** * plugin.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /*global tinymce:true */ tinymce.PluginManager.add('fullscreen', function(editor) { var fullscreenState = false, DOM = tinymce.DOM, iframeWidth, iframeHeight, resizeHandler; var containerWidth, containerHeight; if (editor.settings.inline) { return; } function getWindowSize() { var w, h, win = window, doc = document; var body = doc.body; // Old IE if (body.offsetWidth) { w = body.offsetWidth; h = body.offsetHeight; } // Modern browsers if (win.innerWidth && win.innerHeight) { w = win.innerWidth; h = win.innerHeight; } return {w: w, h: h}; } function toggleFullscreen() { var body = document.body, documentElement = document.documentElement, editorContainerStyle; var editorContainer, iframe, iframeStyle; function resize() { DOM.setStyle(iframe, 'height', getWindowSize().h - (editorContainer.clientHeight - iframe.clientHeight)); } fullscreenState = !fullscreenState; editorContainer = editor.getContainer(); editorContainerStyle = editorContainer.style; iframe = editor.getContentAreaContainer().firstChild; iframeStyle = iframe.style; if (fullscreenState) { iframeWidth = iframeStyle.width; iframeHeight = iframeStyle.height; iframeStyle.width = iframeStyle.height = '100%'; containerWidth = editorContainerStyle.width; containerHeight = editorContainerStyle.height; editorContainerStyle.width = editorContainerStyle.height = ''; DOM.addClass(body, 'mce-fullscreen'); DOM.addClass(documentElement, 'mce-fullscreen'); DOM.addClass(editorContainer, 'mce-fullscreen'); DOM.bind(window, 'resize', resize); resize(); resizeHandler = resize; } else { iframeStyle.width = iframeWidth; iframeStyle.height = iframeHeight; if (containerWidth) { editorContainerStyle.width = containerWidth; } if (containerHeight) { editorContainerStyle.height = containerHeight; } DOM.removeClass(body, 'mce-fullscreen'); DOM.removeClass(documentElement, 'mce-fullscreen'); DOM.removeClass(editorContainer, 'mce-fullscreen'); DOM.unbind(window, 'resize', resizeHandler); } editor.fire('FullscreenStateChanged', {state: fullscreenState}); } editor.on('init', function() { editor.addShortcut('Meta+Alt+F', '', toggleFullscreen); }); editor.on('remove', function() { if (resizeHandler) { DOM.unbind(window, 'resize', resizeHandler); } }); editor.addCommand('mceFullScreen', toggleFullscreen); editor.addMenuItem('fullscreen', { text: 'Fullscreen', shortcut: 'Meta+Alt+F', selectable: true, onClick: toggleFullscreen, onPostRender: function() { var self = this; editor.on('FullscreenStateChanged', function(e) { self.active(e.state); }); }, context: 'view' }); editor.addButton('fullscreen', { tooltip: 'Fullscreen', shortcut: 'Meta+Alt+F', onClick: toggleFullscreen, onPostRender: function() { var self = this; editor.on('FullscreenStateChanged', function(e) { self.active(e.state); }); } }); return { isFullscreen: function() { return fullscreenState; } }; });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129