Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/patientapps_www/modules/htmlEdit/static/plugins/preview/ |
Upload File : |
(function () {
var preview = (function () {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
var getPreviewDialogWidth = function (editor) {
return parseInt(editor.getParam('plugin_preview_width', '650'), 10);
};
var getPreviewDialogHeight = function (editor) {
return parseInt(editor.getParam('plugin_preview_height', '500'), 10);
};
var getContentStyle = function (editor) {
return editor.getParam('content_style', '');
};
var $_ffk79jjfjnlpb2ix = {
getPreviewDialogWidth: getPreviewDialogWidth,
getPreviewDialogHeight: getPreviewDialogHeight,
getContentStyle: getContentStyle
};
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');
var getPreviewHtml = function (editor) {
var previewHtml;
var headHtml = '';
var encode = editor.dom.encode;
var contentStyle = $_ffk79jjfjnlpb2ix.getContentStyle(editor);
headHtml += '<base href="' + encode(editor.documentBaseURI.getURI()) + '">';
if (contentStyle) {
headHtml += '<style type="text/css">' + contentStyle + '</style>';
}
global$2.each(editor.contentCSS, function (url) {
headHtml += '<link type="text/css" rel="stylesheet" href="' + encode(editor.documentBaseURI.toAbsolute(url)) + '">';
});
var bodyId = editor.settings.body_id || 'tinymce';
if (bodyId.indexOf('=') !== -1) {
bodyId = editor.getParam('body_id', '', 'hash');
bodyId = bodyId[editor.id] || bodyId;
}
var bodyClass = editor.settings.body_class || '';
if (bodyClass.indexOf('=') !== -1) {
bodyClass = editor.getParam('body_class', '', 'hash');
bodyClass = bodyClass[editor.id] || '';
}
var preventClicksOnLinksScript = '<script>' + 'document.addEventListener && document.addEventListener("click", function(e) {' + 'for (var elm = e.target; elm; elm = elm.parentNode) {' + 'if (elm.nodeName === "A") {' + 'e.preventDefault();' + '}' + '}' + '}, false);' + '</script> ';
var dirAttr = editor.settings.directionality ? ' dir="' + editor.settings.directionality + '"' : '';
previewHtml = '<!DOCTYPE html>' + '<html>' + '<head>' + headHtml + '</head>' + '<body id="' + encode(bodyId) + '" class="mce-content-body ' + encode(bodyClass) + '"' + encode(dirAttr) + '>' + editor.getContent() + preventClicksOnLinksScript + '</body>' + '</html>';
return previewHtml;
};
var injectIframeContent = function (editor, iframe, sandbox) {
var previewHtml = getPreviewHtml(editor);
if (!sandbox) {
var doc = iframe.contentWindow.document;
doc.open();
doc.write(previewHtml);
doc.close();
} else {
iframe.src = 'data:text/html;charset=utf-8,' + encodeURIComponent(previewHtml);
}
};
var $_5yhtiwjgjnlpb2iy = {
getPreviewHtml: getPreviewHtml,
injectIframeContent: injectIframeContent
};
var open = function (editor) {
var sandbox = !global$1.ie;
var dialogHtml = '<iframe src="" frameborder="0"' + (sandbox ? ' sandbox="allow-scripts"' : '') + '></iframe>';
var dialogWidth = $_ffk79jjfjnlpb2ix.getPreviewDialogWidth(editor);
var dialogHeight = $_ffk79jjfjnlpb2ix.getPreviewDialogHeight(editor);
editor.windowManager.open({
title: 'Preview',
width: dialogWidth,
height: dialogHeight,
html: dialogHtml,
buttons: {
text: 'Close',
onclick: function (e) {
e.control.parent().parent().close();
}
},
onPostRender: function (e) {
var iframeElm = e.control.getEl('body').firstChild;
$_5yhtiwjgjnlpb2iy.injectIframeContent(editor, iframeElm, sandbox);
}
});
};
var $_5zz6kjjdjnlpb2iv = { open: open };
var register = function (editor) {
editor.addCommand('mcePreview', function () {
$_5zz6kjjdjnlpb2iv.open(editor);
});
};
var $_aj65e1jcjnlpb2it = { register: register };
var register$1 = function (editor) {
editor.addButton('preview', {
title: 'Preview',
cmd: 'mcePreview'
});
editor.addMenuItem('preview', {
text: 'Preview',
cmd: 'mcePreview',
context: 'view'
});
};
var $_e8rxhijijnlpb2j4 = { register: register$1 };
global.add('preview', function (editor) {
$_aj65e1jcjnlpb2it.register(editor);
$_e8rxhijijnlpb2j4.register(editor);
});
function Plugin () {
}
return Plugin;
}());
})();