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
TinyMCE unable to edit in text area
Avatar
Lori Matsumoto
Member
Free Members
sp_UserOfflineSmall Offline
May 29, 2012 - 7:09 pm

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/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 29, 2012 - 7:17 pm

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');

Avatar
Lori Matsumoto
Member
Free Members
sp_UserOfflineSmall Offline
May 29, 2012 - 7:33 pm

Thank you that seems to work!  I'm having some other people test it.  I have a separate youtube question I'll create a new post for.  Thanks for your fast response!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 29, 2012 - 7:49 pm

good to hear. thanks for the update.

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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625