Corrupted image upload box
-
Hi guys
I recently corrupted my image upload box. This happened using Firefox with the dictionary extension installed. I think I must have somehow accidently double clicked on a certain word on the box thus a mini box was showing and I clicked upload (the dictionary extension: highlight and double click on a word launches a small box. Click that and a window opens up revealing the definitions for the word). So yeah, I think thats what happened.
Sometiems when I write a new post or when I edit a post, the upload image box is replaced with some massive codes. Sometimes the code even takes over the “save”, “save and continue editing”, “publish” buttons.
I’d like to know what the “upload box” file is called and if I re-uploaded a new one, would it solve the problem?
Thanks in advance…
The codes look like this:
addLoadEvent(function () { window.setTimeout(‘buttonsnap_addbuttons()’,1000); }); var buttonsnap_mozilla = document.getElementById&&!document.all; function buttonsnap_safeclick(e) { if(!buttonsnap_mozilla) { e.returnValue = false; e.cancelBubble = true; } } function buttonsnap_addEvent( obj, type, fn ) { if (obj.addEventListener) obj.addEventListener( type, fn, false ); else if (obj.attachEvent) { obj[“e”+type+fn] = fn; obj[type+fn] = function() { obj[“e”+type+fn]( window.event ); } obj.attachEvent( “on”+type, obj[type+fn] ); } } function buttonsnap_newbutton(src, alt) { if(window.tinyMCE) { var anchor = document.createElement(‘A’); anchor.setAttribute(‘href’, ‘javascript:;’); anchor.setAttribute(‘title’, alt); var newimage = document.createElement(‘IMG’); newimage.setAttribute(‘src’, src); newimage.setAttribute(‘alt’, alt); newimage.setAttribute(‘class’, ‘mceButtonNormal’); buttonsnap_addEvent(newimage, ‘mouseover’, function() {tinyMCE.switchClass(this,’mceButtonOver’);}); buttonsnap_addEvent(newimage, ‘mouseout’, function() {tinyMCE.switchClass(this,’mceButtonNormal’);}); //restoreClass(this) buttonsnap_addEvent(newimage, ‘mousedown’, function() {tinyMCE.restoreAndSwitchClass(this,’mceButtonDown’);}); anchor.appendChild(newimage); brs = mcetoolbar.getElementsByTagName(‘BR’); if(brs.length > 0) mcetoolbar.insertBefore(anchor, brs[0]); else mcetoolbar.appendChild(anchor); } else if(window.qttoolbar) { var anchor = document.createElement(‘input’); anchor.type = ‘button’; anchor.value = alt; anchor.className = ‘ed_button’; anchor.title = alt; anchor.id = ‘ed_’ + alt; qttoolbar.appendChild(anchor); } return anchor; } function buttonsnap_newseparator() { if(window.tinyMCE) { var sep = document.createElement(‘IMG’); sep.setAttribute(‘src’, buttonsnap_wproot + ‘/wp-includes/js/tinymce/themes/advanced/images/spacer.gif’); sep.className = ‘mceSeparatorLine’; sep.setAttribute(‘class’, ‘mceSeparatorLine’); sep.setAttribute(‘height’, ’16’); sep.setAttribute(‘width’, ‘1’); brs = mcetoolbar.getElementsByTagName(‘BR’); if(brs.length > 0) mcetoolbar.insertBefore(sep, brs[0]); else mcetoolbar.appendChild(sep); } } function buttonsnap_settext(text) { if(window.tinyMCE) { window.tinyMCE.execInstanceCommand(‘content’, ‘mceInsertContent’, false, text); tinyMCE.execCommand(“mceCleanup”); } else { edInsertContent(edCanvas, text); } } function buttonsnap_ajax(dispatch) { if(window.tinyMCE) { selection = tinyMCE.getInstanceById(‘content’).getSelectedText(); } else { if (document.selection) { document.getElementById(‘content’).focus(); sel = document.selection.createRange(); if (sel.text.length > 0) { selection = sel.text; } else { selection = ”; } } else { selection = ”; } } var ajax = new sack(buttonsnap_request_uri); ajax.setVar(‘buttonsnapdispatch’, dispatch); ajax.setVar(‘selection’, selection); ajax.onCompletion = function () {buttonsnap_settext(this.response);}; ajax.runAJAX(); } var mcetoolbar; var qttoolbar = document.getElementById(“ed_toolbar”); function buttonsnap_addbuttons () { if(window.tinyMCE) { try { var edit = document.getElementById(window.tinyMCE.getEditorId(‘content’)); for(table = edit;table.tagName != ‘TABLE’;table = table.parentNode); mcetoolbar = table.rows[0].firstChild; } catch(e) { setTimeout(‘buttonsnap_addbuttons()’, 5000); return; } } try {
The topic ‘Corrupted image upload box’ is closed to new replies.