Support Forum

File Uploader and TinyMCE

36 Answers

New Answer

RV Rias Van der Veken
Rias Van der Veken
Member

Glad you like the theme :) was a lot of work.

The jQuery version being loaded externally is the same version as WordPress uses, it’s just using Google CDN to speed up delivery.

I’ve changed it to the default WordPress version again and it’s only loading it once now but the issue is still there :/

MP Mr Papa
Mr Papa
Member

technically, its not the same version (I believe) as its not using noconflict… or historically that has been an issue…  and rarely will it be faster since the browser will likely have cached it anyways… ;)

but if no change with standard wp version, then was worth the try…

still a bit mystified as the lone report thus far…  will keep digging…

RV Rias Van der Veken
Rias Van der Veken
Member

If you need an administrator account to look at the files I can give you one. The site is on a test domain so if something breaks it’s not ruining anything : )

MP Mr Papa
Mr Papa
Member

perhaps… unfortunately, your issue is with IOS which has basically nonexistent development tools, so hard to tell anything… and to top if off, the file uploader uses a third party library and a flash uploader, so we can’t get info from it either… and if there is a problem in that, we would just have to report the problem upstream…

but still digging, just got occupied this afternoon…

YS Yellow Swordfish
Yellow Swordfish
Member

I have been following this thread and I have just re-read it and I am still a little confused. So please excuse me if I have misunderstood something or am going over old ground…

You seem to suggest that you are unable to upload images and/or use the editor on THIS support site using an iPad or iPhone. Is this actually the case? Because if it IS the case then I think we need to be looking into what other software you may have that may be effecting things. I use an iPhone 5, iPad 2 and iPad Mini Retina quite regularly and have no problems editing, uploading etc. For this I use a mix of the Safari browser (which I do not like) but more often Mercury, which I do.

Now while looking at your site this morning using my iPad Mini – I can not actually access the editor at all. The text area is just unavailable completely. is this actually what you see as it is not what I understood the problem to be from the previous posts. (There is no attachments button either).

I also have one question regarding the editor toolbar options. I see you have changed them from the default as we supply them. If you out it back to the default set of buttons does that make any difference. I.e., back to a state that is known to work correctly?

RV Rias Van der Veken
Rias Van der Veken
Member

Yellow Swordfish said
I have been following this thread and I have just re-read it and I am still a little confused. So please excuse me if I have misunderstood something or am going over old ground…

You seem to suggest that you are unable to upload images and/or use the editor on THIS support site using an iPad or iPhone. Is this actually the case? Because if it IS the case then I think we need to be looking into what other software you may have that may be effecting things. I use an iPhone 5, iPad 2 and iPad Mini Retina quite regularly and have no problems editing, uploading etc. For this I use a mix of the Safari browser (which I do not like) but more often Mercury, which I do.

Now while looking at your site this morning using my iPad Mini – I can not actually access the editor at all. The text area is just unavailable completely. is this actually what you see as it is not what I understood the problem to be from the previous posts. (There is no attachments button either).

I also have one question regarding the editor toolbar options. I see you have changed them from the default as we supply them. If you out it back to the default set of buttons does that make any difference. I.e., back to a state that is known to work correctly?

The editor works fine on this site for me but the uploader doesn’t seem to do anything when I press “add files”

Now for my own website, if you add a reply you get focus inside the editor, but once you leave this focus it is indeed impossible to access the editor again.

I’ve changed the buttons back to what is supplied with the Unified theme (in spFunctions.php) which is this:

# load the theme textdomain for tranlations
add_action(‘init’, ‘spUnified_textdomain’);
function spUnified_textdomain() {
sp_theme_localisation(‘spUnified’);
}

# only show a few buttons on phone
add_filter(‘sph_tinymce_buttons_1’, ‘spUnified_editor_buttons_1’, 999);
function spUnified_editor_buttons_1($buttons) {
global $spDevice;
if ($spDevice == ‘mobile’) $buttons = ‘bold,italic,underline,blockquote,link,unlink,image,code,wp_adv’;
if ($spDevice == ‘tablet’) $buttons = ‘bold,italic,underline,|,bullist,numlist,|,blockquote,|,link,unlink,|,image,media,|,spoiler,ddcode,|,code,spellchecker,|,wp_adv’;
return $buttons;
}

add_filter(‘sph_tinymce_buttons_2’, ‘spUnified_editor_buttons_2’);
function spUnified_editor_buttons_2($buttons) {
global $spDevice;
if ($spDevice == ‘mobile’) $buttons = ‘formatselect,fontsizeselect,spellchecker’;
if ($spDevice == ‘tablet’) $buttons = ‘formatselect,fontsizeselect,|,strikethrough,forecolor,justifyleft,justifycenter,justifyright,justifyfull,|,charmap,removeformat,selectall’;
return $buttons;
}

add_action(‘sph_BeforeDisplayStart’, ‘spUnified_remove_resize’, 5);
function spUnified_remove_resize() {
global $spDevice;
if ($spDevice == ‘mobile’) {
remove_action(‘sph_BeforeDisplayStart’, ‘sp_resize_show’);
}
}

But this makes no difference in being able to access the editor.

YS Yellow Swordfish
Yellow Swordfish
Member

The editor works fine on this site for me but the uploader doesn’t seem to do anything when I press “add files”

I have trouble with this. We all use it with IOS, Android, various browsers with no problem. So do some of our users and this includes uploading. This is a unique report for this site and I suspect has more to do with your device than anything else. What device, browser, OS version and browser version are you trying this with?

Now for my own website, if you add a reply you get focus inside the editor, but once you leave this focus it is indeed impossible to access the editor again.

I see this behaviour. Curiously from about 4 tests (reloaded page) I actually managed to get back into the editor twice but mostly it fails. Same questions as above here please. And what does this editor behaviour have to do with the uploader plugin?

One final question… are you using any other WordPress plugins that add items to the editor toolbar or add any sort of functionality? Even if buttons not being shown – are any in use? This is a critical question because – as we discussed in another thread, there was a major update to TinyMCE in WordPress 3.9 and a few plugins that add items to it were not updated which has caused huge problems for large numbers of users.

RV Rias Van der Veken
Rias Van der Veken
Member

What device, browser, OS version and browser version are you trying this with?

My main device is an iPhone 5S with iOS 8 (beta 5) and the safari browser.

I’ve also tested on an iPad Mini with iOS 7.1 plus both the iPhone simulator and iPad simulator from xCode which are on iOS 7.1 using the Safari browser.

And what does this editor behaviour have to do with the uploader plugin?

When I fully disable the uploader plug-in in the plug-ins page, the editor is able to get into easily again and shows no issues anymore.

One final question… are you using any other WordPress plugins that add items to the editor toolbar or add any sort of functionality? Even if buttons not being shown – are any in use?

No, on my test website the only WordPress plug-ins that are active are BuddyPress and Simple Press.

YS Yellow Swordfish
Yellow Swordfish
Member

Still looking into but getting nowhere. Oddly – I have found one IOS browser that works just fine called ‘WebDebug’ which I bought hoping it might shed some light on errors – except it works! I think my main concern here is the problem you are having with this site.

MP Mr Papa
Mr Papa
Member

my concern is that the button operation is embedded within the third party js library…  quick test to try might be to replace the plupload js library with an empty file…  file uploader of course wont work, but be interesting to see if the tinymce editor begins working then…  might narrow down the conflict keeping the editor from working…

RV Rias Van der Veken
Rias Van der Veken
Member

Mr Papa said
quick test to try might be to replace the plupload js library with an empty file… 

This didn’t work, tried every plupload js file in the plug-in folder.

I’ve inspected both your site and mine on the iPad and there’s some differences in the generated code, I don’t know if these are significant but they might make the difference.

Screen-Shot-2014-08-12-at-10.25.48.png

 

 

 

Yours is on the left, mine on the right.

For example:

  • Mine has a src=”javascript:””” on the iFrame and yours doesn’t, I don’t know where this comes from
  • Inside the body, mine has an onload=”window.parent…….”, again something your editor doesn’t seem to have.

Maybe this will bring us a step closer :)

YS Yellow Swordfish
Yellow Swordfish
Member

That really is curious… The plupload scripts are from Moxie and the ones we and WordPress use are pre-compressed so it is hard to look at the source code. I will try and see if I can find the uncompressed code…

MP Mr Papa
Mr Papa
Member

I dont think it will do any good to compare the scripts to yours… 

We are running the next version of the plupload library so it wont match…

additionally, we are running the wp 4.0 beta version here which has a newer version of tinymce than the currrently released wp versions…  you are running at least wp version 3.9, right?

RV Rias Van der Veken
Rias Van der Veken
Member

Mr Papa said
you are running at least wp version 3.9, right?

Yes, I always update to the newest version

MP Mr Papa
Mr Papa
Member

I also notice that part of it is translated…  is the file uploader or our tinemce plugins using translations?  also have you enable the 3rd party tinymce or plupload js (forum – components – tinymce and forum – components – file uploader)?

and sorry, but have not gone back through early stuff, have you tried this with no other plugins and default wp theme?