Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/preview.tar
Назад
plugin.min.js 0000604 00000003102 15245611141 0007152 0 ustar 00 tinymce.PluginManager.add("preview",function(e){var t=e.settings,n=!tinymce.Env.ie;e.addCommand("mcePreview",function(){e.windowManager.open({title:"Preview",width:parseInt(e.getParam("plugin_preview_width","650"),10),height:parseInt(e.getParam("plugin_preview_height","500"),10),html:'<iframe src="javascript:\'\'" frameborder="0"'+(n?' sandbox="allow-scripts"':"")+"></iframe>",buttons:{text:"Close",onclick:function(){this.parent().parent().close()}},onPostRender:function(){var r,i="";i+='<base href="'+e.documentBaseURI.getURI()+'">',tinymce.each(e.contentCSS,function(t){i+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'">'});var o=t.body_id||"tinymce";o.indexOf("=")!=-1&&(o=e.getParam("body_id","","hash"),o=o[e.id]||o);var a=t.body_class||"";a.indexOf("=")!=-1&&(a=e.getParam("body_class","","hash"),a=a[e.id]||"");var s='<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> ',l=e.settings.directionality?' dir="'+e.settings.directionality+'"':"";if(r="<!DOCTYPE html><html><head>"+i+'</head><body id="'+o+'" class="mce-content-body '+a+'"'+l+">"+e.getContent()+s+"</body></html>",n)this.getEl("body").firstChild.src="data:text/html;charset=utf-8,"+encodeURIComponent(r);else{var c=this.getEl("body").firstChild.contentWindow.document;c.open(),c.write(r),c.close()}}})}),e.addButton("preview",{title:"Preview",cmd:"mcePreview"}),e.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})}); view.html.php 0000604 00000001410 15245625262 0007173 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_modules * * @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ // @deprecated 4.0 not used for a long time defined('_JEXEC') or die; /** * HTML View class for the Modules component * * @since 1.6 */ class ModulesViewPreview extends JViewLegacy { /** * Display the view * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return void */ public function display($tpl = null) { $editor = JFactory::getConfig()->get('editor'); $this->editor = JEditor::getInstance($editor); parent::display($tpl); } } tmpl/default.php 0000604 00000001534 15245625262 0007665 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_modules * * @copyright (C) 2008 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ // @deprecated 4.0 not used for a long time defined('_JEXEC') or die; JFactory::getDocument()->addScriptDeclaration( ' var form = window.top.document.adminForm var title = form.title.value; var alltext = window.top.' . $this->editor->getContent('text') . '; jQuery(document).ready(function() { document.getElementById("td-title").innerHTML = title; document.getElementById("td-text").innerHTML = alltext; });' ); ?> <table class="center" width="90%"> <tr> <td class="contentheading" colspan="2" id="td-title"></td> </tr> <tr> <td valign="top" height="90%" colspan="2" id="td-text"></td> </tr> </table>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка