Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Need Help Troubleshooting TinyMCE Conflict
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 3, 2013 - 5:47 pm

Hello. I am currently doing a major makeover for Tripawds on our test site and have hit a brick wall.

It turns out TinyMCE will not load in Firefox for Mac OS. It works on Windows, and in Chrome and Safari for Mac.

I have reviewed the jquery conflict codex article (many times) and asked for support from the theme developer who said:

Creativo is only using the jquery provided by wordpress so i don't really understand where's the issue ... Creativo is using the jquery provided by WordPress script

I've spent days configuring the new theme, so I'd love to get this working if at all possible. If anyone has a chance to try posting in the following forum or topic, using Firefox on a Mac and report back here with any feedback, I would be most appreciative!

http://tripawds.net/forums/tec.....-see-here/

For the record, I did try removing the sliders on the page and deactivating all other plugins. That didn't make a difference, so I put them back. There is clearly something going on with the theme, since TinyMCE loaded fine in Twenty Thirteen. It tested OK in FF for Windows, and in  Safari and Chrome on a Mac, so Firefox on a Mac seems to be the deal breaker. I'd hate for just that to scrap this whole makeover! <end rant>

I get the following js warning upon loading the Forums:

Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
http://tripawds.net/wp-include.....ver=1.10.2
Line 4

Firebug console also reports the following error:

TypeError: this.getDoc(...) is undefined
http://tripawds.net/wp-include.....=358-25336
Line 1

Any other suggestions as to troubleshooting or resolving this issue further is also greatly appreciated.

Thanks in advance for any feedback, suggestions or information I may be able to relay to the theme developers.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 3, 2013 - 7:14 pm

ouch...  only on Mac, eh?  It works fine on your site with PC and FF...  Afraid only Andy here has a Mac...  And he leaves in the AM on a two week vacation... probably wont stop in before he leaves...

so this new theme, does it add any buttons or plugins to the wp editor?  like when you are creating a new wp blog post?  too many themes and plugins assume that the wp editor is only used in the admin which is just wrong as the wp editor api fully supports its use in the front end...  when they hook in, they may be using wrong hook (ie init vs admin_init) causing problems... but frankly, I would expect that to be an issue on any browser if it was...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 4, 2013 - 2:15 pm

Mr Papa said
ouch...  only on Mac, eh? 

Yup, I've replicated the issue on multiple Macs using different networks, but it only happens in Firefox.

so this new theme, does it add any buttons or plugins to the wp editor?

Yes, it uses a Visual Composer which allows for some pretty massively configurable posts/pages and page elements. There is clearly a lot of js juju going on, but even when deactivating the visual composer and other add-ons, the issue persists.  

So I've been working with the theme developer to try and nail this down. Here's an interesting result of their suggestion to totally deactivate all of the theme's scripts...

When I comment out the following from the themes functions file:
//add_action('wp_enqueue_scripts', 'creativo_js_scripts');

The plain text editor loads in SimplePress. So by turning off the theme's js, the plugin fails to load TinyMCE, but the plain text editor does load, when no editor is loaded with Creativo's scripts active.

This error is also thrown when loading the Forums page with the scripts action commented out. I presume this would be expected with js off in the theme's functions:

TypeError: $(...).cycle is not a function
http://tripawds.net/forums/tec.....-see-here/
Line 325

Another interesting affect of turning off the themes scripts—the plain text editor loads only when using the "Quote" button to reply. But when hitting "Reply" no editor loads at all and the following error is shown:

TypeError: tinyMCE.activeEditor is null
http://tripawds.net/wp-content.....val/seq/13
Line 1

I am hoping to continue working with the theme developers to try and nail this down. I'll pass along your previous comments. If any of the above suggest potential causes/conflicts or anyone has any other ideas that I can pass along, please advise.

I would expect that to be an issue on any browser if it was...

Me too! confused

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2013 - 3:31 pm

so how are they adding a button to tinymce in the wp editor?  normally not done with js...  but instead a wp hook and function...  and the problem we have seen with most plugins/themes having an issue is that they hook in with 'init', but if they only want their stuff in the admin, they should hook in with 'admin_init'...

of course, I have no idea if that is the case here or not, just one of the primary issues we had seen...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 4, 2013 - 3:49 pm

Mr Papa said
so how are they adding a button to tinymce

Not really sure, still awaiting more info from them. The theme is bundled with a plugin that basically replaces the WP editor with a drag and drop Visual Composer that generates shortcodes you can see when switching to the "Classic Editor".

Sifting through code now to try and identify any init vs. admin_init issue.

Thanks again for the pointers!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2013 - 4:13 pm

replaces the wp editor... sounds scary since we use the wp editor for posting... ;)

just ask if they have any questions...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 4, 2013 - 6:44 pm

Mr Papa said
replaces the wp editor... sounds scary...

"Replace" was the wrong word I guess, sorry. The theme uses a plugin to add much more functionality for adding various elements with drag and drop capabilities.

The developer says:

The only INIT hook used is in functions.php to delare the Primary menu...

INIT hook is not used anywhere else except for the functions.php file, which is the core file of the theme.

I fear we won't be able to use this theme if we can't get this sorted out. A shame really, all because of an issue in one browser on one OS. Everything else was going so well... #end_rant

Thanks again for the feedback.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2013 - 3:18 am

well, didnt say thats what they were doing, just in practice what the primary issue we were seeing from plugins and themes causing issues...  but not really sure what they mean by init and functions.php...   wp will run stuff in functions.php without hooking into init...

sorry we havent been more help on this, but standing by...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 5, 2013 - 6:53 pm

Mr Papa said
standing by...

Thanks!

OK, there is hope! Or at least I hope there is hope considering the following...

I just confirmed the issue of tinyMCE not loading is only happening for site and super admin accounts:

  • Guest = TinyMCE
  • Member = TinyMCE
  • Moderator = TinyMCE
  • Forum Admin =TinyMCE
  • Site Admin = NO TinyMCE
  • Super Admin =NO TinyMCE

Notice a pattern? This leads me to believe it may be something going on within SimplePress.

Any suggestions for troubleshooting now considering this info?

FYI: We're running SP v. 5.3.3 as of this post, will update to 5.3.4 now. On our live site, we're still running 5.3.1 and are not seeing this issue.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2013 - 7:43 pm

Yes, a pattern... and one that suggest to me it is the theme and what its doing to the wp editor...

Let me explain why...

Who on your site can access the wp admin add posts page?  That is, who has permission to make blog posts on your site?  My guess is only the site admins and the super admins...   Guessing all the rest of your users fall into the other sp usergroups that get tinymce... and its probably because they dont have permission to write wp blog posts or access the editor, so the wp editor is left untouched by the theme...

As to SP, using the wp editor is not a permission or does not involve any checks for the user... if you enable tinymce, any user can use it...  there are no checks against it being a guest, a user, a moderator or an sp admin...  and we do very little for wp admins...  if you remember, wp admins are not sp admins... for a wp site admin to be more than a regular user on the forum, you have to give them sp admin capabilities...

Want to run a test?  create a new user and put him in one of those usergroups that can use tinymce now... then go into the wp users panel and make that user an editor...   now go see if he can still use tinymce in the forum...

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: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626