Support Forum

TinyMCE Unable to type in Text Field

98 Answers

New Answer

TR Total Revue
Total Revue
Member

Well before Shama came in and posted he’s coding here I was prompted to look into the header.php to find a resolution with my theme accordian panel conflicting with the TinyMCE editor from working. 

 

I’m confused what to show now since I don’t know what posts are directed to me and what are to Shama :/



YS Yellow Swordfish
Yellow Swordfish
Member

Well to be fair Shama was on this thread a long time before you joined it.

OK – so you still have two bogus copies of the jQuery UI library being loaded – one from this accordion menu thing and another from who knows where but possibly the Wp theme.

So – if you want to try and deal with these one at a time then take the accordion menu thing first. It will be in the plugin files somewhere and you should be looming for the a ‘script’ tag or – if we are lucky, a wp_enqueue_script() call that deals with the file ‘jquery-ui-1.8.10.custom.min.js’. Most commonly you would find that in the main plugin file but it is not a rule.

TR Total Revue
Total Revue
Member

Just updated my theme with updated JQuery – can you see if there are still conflicts now? 

MP Mr Papa
Mr Papa
Member

its still loading jquery ui from wrong location

<script type=’text/javascript’ src=’https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js?ver=3.3.1′></script>

additionally, another jquery ui is being loaded

<script type=”text/javascript” src=”http://totalrevue.com/wp-content/plugins/accordion-image-menu/js/jquery-ui-1.8.10.custom.min.js”></script>

which contains UI and the UI effects library…  both older versions…

and then of course, wp loads its jquery ui stuff…

<script type=’text/javascript’ src=’http://totalrevue.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.8.16′></script>
<script type=’text/javascript’ src=’http://totalrevue.com/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.8.16′></script>

so likely heavy conflicts there…

need to stop the loading of the google apis jquery and the old version for the accordion… you at least find where they are loaded and stop them from being loaded on the forum page since…  the one for the accordion will be a bit more problematic since its a home grown jquery ui (old too) file that includes jquery ui and the ui effects library…  wp does NOT include the ui effects library so you will still need to load it… 

KM Kevin Mitchell
Kevin Mitchell
Member

Looks like TotalRevue and myself are using the same WordPress theme. No wonder we both having issue with the problem.

MP Mr Papa
Mr Papa
Member

its usually resolved fairly easily… just need to locate where the jquery ui stuff is being loaded.. we can help correct it…

TR Total Revue
Total Revue
Member

okay can we start with the accordian image menu? 

 

http://totalrevue.com/wp-content/plugins/accordion-image-menu/js/jquery-ui-1.8.10.custom.min.js – I’ve located this within the accordian image menu plugin – it says that it’s inactive.. so editing it should be fine? What to do from here?

MP Mr Papa
Mr Papa
Member

inactive?  then why is it included on every page?

if you edit it, you will see two distinct code blocks…  the first is the old 1.8.10 version of jquery ui…remove it… you can leave the second part which is the effects…  dont know if it will work with 1.8.16 that wp uses, but if inactive, may not matter…

KM Kevin Mitchell
Kevin Mitchell
Member

Mr Papa said
its usually resolved fairly easily… just need to locate where the jquery ui stuff is being loaded.. we can help correct it…

Doesn’t seem like it, no offense. We have been going back and worth for a week now, and reading that toubleshooting in the codex didn’t help.

MP Mr Papa
Mr Papa
Member

none taken, but it is fairly straight forward…  but its not our theme, so you have to meet us half way and find where in the theme they are loading the jquery ui stuff…

most editors (and no, ms word is not an editor) and even windows explorer can search a directory (and subdirs) for text…

find it and let us know and we can try to help correct the theme…

unfortunately, we have helped hundreds of folks fix wp theme js and/or jquery issues…

TR Total Revue
Total Revue
Member

I deleted the jquery-ui-1.8.10.custom.min.js file from the directory – wiped cache on both browser and in WP but no luck. Can you confirm it’s not loaded anymore?

MP Mr Papa
Mr Papa
Member

well, its still trying to load it…  but does not appear to be finding it…

I am seeing a js error from all.js – something to do with facebook… not sure if critical…

and the google apis jquery ui is still being loaded…

TR Total Revue
Total Revue
Member

disabled the accordiam image menu plugin but the text area is still restricted.

 

Seems like its googleapis that’s the problem.

 

I’ll have it disabled for you to see for yourself

MP Mr Papa
Mr Papa
Member

how?  guests cannot post…

plus whatever is loading the googleapis should just load the wp verison… if you can find where its loaded, we can help fix it… usually in header.php or functions.php if the theme…

KM Kevin Mitchell
Kevin Mitchell
Member

This is from my functions.php. I’ve tried removing this

wp_enqueue_script(‘jqueryui’, ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js’, array(‘jquery’));

but if I do the Add reply button won’t do anything.

 

/*************************** Enqueue Scripts ***************************/

function gp_enqueue_scripts() {
if(!is_admin()){

wp_enqueue_script(‘jquery’);

wp_enqueue_script(‘jqueryui’, ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js’, array(‘jquery’));

if(is_singular()) wp_enqueue_script(‘comment-reply’);

wp_enqueue_script(‘swfobject’, ‘http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js’);

wp_enqueue_script(‘jwplayer’, get_template_directory_uri().’/lib/scripts/mediaplayer/jwplayer.js’, array(‘jquery’));

wp_enqueue_script(‘carousel’, get_template_directory_uri().’/lib/scripts/jquery.carouFredSel.js’, array(‘jquery’));

wp_enqueue_script(‘prettyphoto’, get_template_directory_uri().’/lib/scripts/prettyPhoto/js/jquery.prettyPhoto.js’, array(‘jquery’));

wp_enqueue_script(‘jqtransform’, get_template_directory_uri().’/lib/scripts/jquery.jqtransform.js’, array(‘jquery’));

}
}
add_action(‘wp_print_scripts’, ‘gp_enqueue_scripts’);