Support Forum
I have ThemeFit Hybrid 1.2.0083 with Simple:Press 5.0.5 and I installed TinyMCE Version 1.0.6. I activated TinyMCE and selected it as the default editor in Forums/Options/Global Settings. When I created a new post I could see the TinyMCE toolbar but could not type in the text area. When editing a post I could not see existing content in the TinyMCE text area or type in the text area. I searched these support forums and read this article http://codex.simple-press.com/.....-conflict/ - there is a line in my functions.php which has wp_register_script('jquery-ui-core', "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js", false);
As a test I changed it to wp_register_script('jquery-ui-core');
which did allow me to see the existing post content in the TinyMCE text area and edit it, but gave this error at the top of the page:
Warning: Missing argument 2 for wp_register_script(), called in /problem-with-post-edit-buttonome/mwaid/markwaid.com/wp-content/themes/themefit-hybrid/functions.php on line 66 and defined in/problem-with-post-edit-buttonome/mwaid/markwaid.com/wp-includes/functions.wp-scripts.php on line 52
So clearly the jqueryui conflict is the cause of the problem. Unfortunately I can't leave the TinyMCE plugin activated for you to look at as it breaks posting for all my forum members, so I have deactivated it and reverted back to the original functions.php. Could you please tell me what I can try to do to fix this?
This is all the jquery-ui stuff in my function.php doc:
// set up javascript
if ( !is_admin() ) {
wp_deregister_script('jquery');
wp_deregister_script('jquery-ui-core');
wp_register_script('jquery', "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", false);
wp_enqueue_script('jquery');
wp_register_script('jquery-ui-core', "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js", false);
wp_enqueue_script('jquery-ui-core');
}
This is my forum URL: http://markwaid.com/mwforum/
that was close... instead of:
wp_register_script('jquery-ui-core');
you would want:
wp_enqueue_script('jquery-ui-core');
but frankly, I would replace all that mess (all the deregister, register and enqueue) with:
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');
Visit Cruise Talk Central and Mr Papa's World
good to hear. thanks for the update.
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)