Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) C:\Intranet\C\xampp\htdocs\jaime\wordpress\wp-includes\js\tinymce\themes\advanced\jscripts\ drwxrwxrwx |
Viewing file: anchor.js (1.51 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | var action, element; function init() { tinyMCEPopup.resizeToInnerSize(); var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); var anchor = tinyMCE.getParentElement(inst.getFocusElement(), "a", "name"); var img = inst.getFocusElement(); action = 'insert'; if (anchor != null) { element = anchor; action = "update"; } if (tinyMCE.getAttrib(img, "class") == "mceItemAnchor") { element = img; action = "update"; } if (action == "update") document.forms[0].anchorName.value = element.nodeName == "IMG" ? element.getAttribute("title") : element.getAttribute("name"); document.forms[0].insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); } function insertAnchor() { var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); var name = document.forms[0].anchorName.value; tinyMCEPopup.execCommand("mceBeginUndoLevel"); if (action == "update") { if (element.nodeName == "IMG") element.setAttribute("title", name); else element.setAttribute("name", name); } else { var rng = inst.getRng(); if (rng.collapse) rng.collapse(false); name = name.replace(/&/g, '&'); name = name.replace(/\"/g, '"'); name = name.replace(/</g, '<'); name = name.replace(/>/g, '&gr;'); html = '<a name="' + name + '"></a>'; tinyMCEPopup.execCommand("mceInsertContent", false, html); tinyMCE.handleVisualAid(inst.getBody(), true, inst.visualAid, inst); } tinyMCEPopup.execCommand("mceEndUndoLevel"); tinyMCE.triggerNodeChange(); tinyMCEPopup.close(); } |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |