AI Assistant
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
1,522 Views
(@drlightman)
Active Member
Joined: 7 years ago
Posts: 13
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#4850]

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: 7 years ago
Posts: 1403
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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