WordPress 2.5 won’t post images (sometimes)

Not uploading images (again)

This is the script that leads to the error:

/ send html to the post editor
2function send_to_editor(h) {
3 var win = window.opener ? window.opener : window.dialogArguments;
4 if ( !win )
5 win = top;
6 tinyMCE = win.tinyMCE;
7 if ( typeof tinyMCE != ‘undefined’ && ( ed = tinyMCE.getInstanceById(’content’) ) && !ed.isHidden() ) {
8 tinyMCE.selectedInstance.getWin().focus();
9 tinyMCE.execCommand(’mceInsertContent’, false, h);
10 } else
11 win.edInsertContent(win.edCanvas, h);
12}

And this is the error message:

win.edInsertContent is not a function
[Break on this error] win.edInsertContent(win.edCanvas, h);

Is there anyone out there that knows what’s going on? I am missing something. The problem is sporadic, and this was a 35K JPEG picture.

Q

Sphere: Related Content


Stumble It!

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

Thanks !

Leave a comment

(required)

(required)