Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
File Uploader and TinyMCE
Avatar
Rias Van der Veken
Member
Free Members
sp_UserOfflineSmall Offline
Aug 11, 2014 - 4:36 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 11, 2014 - 5:58 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Rias Van der Veken
Member
Free Members
sp_UserOfflineSmall Offline
Aug 11, 2014 - 6:06 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 11, 2014 - 2:50 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2014 - 12:20 am

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...

Avatar
Rias Van der Veken
Member
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2014 - 4:29 am

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.pngImage Enlarger

 

 

 

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 :)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 12, 2014 - 12:05 pm

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2014 - 9:00 pm

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?

Avatar
Rias Van der Veken
Member
Free Members
sp_UserOfflineSmall Offline
Aug 13, 2014 - 4:21 am

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

Yes, I always update to the newest version

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 13, 2014 - 9:14 pm

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?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17367
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626