Notifications
Clear all

Can't switch between Visual and Text in settings > Phrases's editors

2 Posts
2 Users
0 Reactions
877 Views
(@drlightman)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Hello,

the missing Cookie library JS error prevents the visual editors to work properly in Settings > Phrases > Follow, for instance.

While waiting for the fixed plugin version, I fixed by commenting these lines:

// wp_register_script('wpdiscuz-jquery-cookie', plugins_url(WPDISCUZ_DIR_NAME . '/assets/third-party/wpdcookiejs/customcookie.js'), array('jquery'), $this->version, true);
// wp_enqueue_script('wpdiscuz-jquery-cookie');

and added just below them, these lines:

  // --- tmp fix for missing Cookie library ---
wp_register_script('wpdiscuz-cookie-js', plugins_url(WPDISCUZ_DIR_NAME . '/assets/third-party/wpdccjs/wpdcc.js'), array('jquery'), $this->version, $this->optionsSerialized->isLoadScriptsInFooter);
wp_enqueue_script('wpdiscuz-cookie-js');

code taken from same libraries enqueued for frontend, hoping it's okay but it looks like so by now.


   
Quote
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

Hi @drlightman,

Thank you for sharing the code.

We know about the issue and this will be fixed in the next version update.


   
ReplyQuote
Share:
Scroll to top