Support Forum

Toolset, Admin links TinyMCE problems

GR grof
grof
Member

I have problems with showing Post’s toolset and Admin links jscript menus in WP 3.3 and SP 5.0. After showing these menus, they are immediately disappear from screen.

 

TinyMCE, when opened does not allow to write anything in the editor area.

Why? 

(you can try this on my test site: http://igranje-org.enc.com.hr/forum

11 Answers

New Answer

MP Mr Papa
Mr Papa
Member

looks like js issue… and perhaps conflict with mootools which is known to be very problematic for wp since its js shares namespace with jquery…  its the blip slideshow plugin…

it that plugin really do anything on the forum page???  shouldnt be loaded if not, but too many plugins get lazy…

can you temp disable it, clear browser cache and see if it resolves it?

GR grof
grof
Member

Mr Papa said

looks like js issue… and perhaps conflict with mootools which is known to be very problematic for wp since its js shares namespace with jquery…  its the blip slideshow plugin…

it that plugin really do anything on the forum page???  shouldnt be loaded if not, but too many plugins get lazy…

can you temp disable it, clear browser cache and see if it resolves it?

Still does not work… maybe some other plugin makes trouble? I’ll try to disable one by one in some days 😉

MP Mr Papa
Mr Papa
Member

actually, after another look, I bet its the theme…

looks like its including jquery ui from googleapis instead of using the jquery ui that ships with wp…  so you now have to versions loaded… and the one from googleapis is older (1.7.1) vs the version loaded by wp (1.8.16)…  and there were some major changes in between…

themes (and plugins) need to quit loading js that wp supplies… likely to cause issues like this…

you can test my theory by a quick switch to the wp default theme and see if it works… then fix the theme to use the wp api and enqueue js including jquery ui…

GR grof
grof
Member

Mr Papa said

actually, after another look, I bet its the theme…

looks like its including jquery ui from googleapis instead of using the jquery ui that ships with wp…  so you now have to versions loaded… and the one from googleapis is older (1.7.1) vs the version loaded by wp (1.8.16)…  and there were some major changes in between…

themes (and plugins) need to quit loading js that wp supplies… likely to cause issues like this…

you can test my theory by a quick switch to the wp default theme and see if it works… then fix the theme to use the wp api and enqueue js including jquery ui…

You are right! With some other theme it’s works! Maybe google+ widget force using that problematic jquery?

YS Yellow Swordfish
Yellow Swordfish
Member

You can tell what is loading it by either looking at the theme code or viewing the source after you load a page. It is almost certainly the theme. Some theme authors just write bad code and do not use the WP API riding roughshod over other plugins.

GR grof
grof
Member

Yes, this is the theme’s problem.

 

I found this inside script.php of my theme:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>
 <script type="text/javascript" src="<?php bloginfo('template_directory')?>/js/jquery.cycle.all.min.js"></script> 
 <script type="text/javascript" src="<?php bloginfo('template_directory')?>/js/jquery.easing.1.3.js"></script> 
 <script type="text/javascript" src="<?php bloginfo('template_directory')?>/js/superfish.js"></script>

So, may theme call googleapis instead WP jquery. I must see how can handle this…

MP Mr Papa
Mr Papa
Member

the proper way in wp to load js such as jquery:

http://codex.wordpress.org/Function_Reference/wp_enqueue_script

so all four of those loads are wrong…  should just load the last three using wp_enqueue_script() with jquery as a dependency… then wp will load the version it ships with…

GR grof
grof
Member

Mr Papa said

the proper way in wp to load js such as jquery:

http://codex.wordpress.org/Function_Reference/wp_enqueue_script

so all four of those loads are wrong…  should just load the last three using wp_enqueue_script() with jquery as a dependency… then wp will load the version it ships with…

I’m simply commented script line with googleapis and now all works perfectly (a little formatting issues are still here, but this is not problem linked to jquery. Internal frame of showing menu is a little too wide for external frame of menu…)

MP Mr Papa
Mr Papa
Member

normally you shouldnt have to include jquery at all… just list as dependency, so just wish those theme authors doing it wrong would get with the times…

not sure I follow your last…  did you need help with something still?  if so, please be bit more specific or use a screenshot…

GR grof
grof
Member

Mr Papa said

not sure I follow your last…  did you need help with something still?  if so, please be bit more specific or use a screenshot…

No, no… 🙂 I’m just commenting about how all working well now. Thanks. 😉