WYSIWYG Editor Not Working Correctly
- This topic has 48 replies, 12 voices, and was last updated 1 year, 11 months ago by
Peter.
-
AuthorPosts
-
December 23, 2020 at 5:02 PM #23716
SLG Marketing
ParticipantI've registered a WYSIWYG metabox on a page post type but the visual editor isn't working. If I swap to the "text" tab, I can type in there and the details are saved, but nothing is shown in the visual editor section.
Here is the code I'm using to register the metaboxes.
$meta_boxes[] = array( 'title' => 'Pedestal Details', 'id'=>'pedestal_details', 'post_types' => 'page', 'fields' => array( array( 'name'=>'Select Image Map', 'id'=>'image_map', 'type'=>'select', 'options'=>array( 'test'=> 'Test' ) ), array( 'name'=>'Hotspot Details', 'id'=>'hotspots', 'type'=>'group', 'clone'=>true, 'sort_clone'=>true, 'add_button'=>'Add a Hotspot', 'fields'=>array( array( 'name'=>'Hotspot Title', 'id'=>'hotspot_title', 'type'=>'text' ), array( 'name'=>'Hotspot Content', 'id'=>'hotspot_content', 'type'=>'wysiwyg' ), array( 'name'=>'Hotspot Image', 'id'=>'hotspot_image', 'type'=>'image_advanced', 'multiple'=>false ), array( 'name'=>'Hotspot Products', 'id'=>'hotspot_products', 'type'=>'post', 'post_type'=>'product', 'clone' => true, 'add_button'=>'Add a product' ) ) ), array( 'name'=>'Select a download', 'id'=>'pedestal_downloads', 'type'=>'post', 'post_type'=>'download', 'clone' => true ) ) );
What have I missed?
December 24, 2020 at 12:03 PM #23726Long Nguyen
ModeratorHi,
I'm going to check this issue and inform you later.
Thank you.
December 29, 2020 at 9:05 PM #23764Long Nguyen
ModeratorHi,
Please update the newest version of Meta Box 5.3.6 to fix this issue.
December 30, 2020 at 9:51 PM #23787Gunvor
ParticipantHi, Long Nguyen!
I have an issue with latest version Meta Box 5.3.6. Just updated today.
So, I use this code
add_filter( 'wp_default_editor', create_function( '', 'return "html";' ) );
for html (plain text) editor by default.Everything was fine and Metabox was always listening this hook before today. Now any WYSIWYG fields from Meta Box show me Rich editor by default.
What can I do?
December 31, 2020 at 1:49 AM #23790stijlXpres
ParticipantHi,
I am also experiencing issues with the latest version (5.3.6)
Changes made in any metabox wysiwyg field are not saved when updating the page or post.What can I do?
December 31, 2020 at 6:14 AM #23795Long Nguyen
ModeratorHi friends,
@Gunvor: since WordPress version 5.6 changes the TinyMCE display when using Block Editor so we have an update to re-render the TinyMCE (field WYSIWYG) to compatible with this change. The filter
wp_default_editor
might do not work after re-rendering. I'm going to create a feature request for the developer team to support this case.
@stijlXpres: the field WYSIWYG value still saved after updating the post/page as well. Could you please deactivate all plugins except Meta Box, clear the cache, and check this issue again?December 31, 2020 at 4:06 PM #23800stijlXpres
ParticipantHi Long Nguyen,
Unfortunately, your suggestion did not fix the issue. But I still can edit (and save) in 'text' mode, although the changes are not visible in 'visual' mode.
Setting back MetaBox to version 5.3.5. does fix the issue on my sites.
December 31, 2020 at 7:12 PM #23802Long Nguyen
ModeratorHi,
Please follow the Debugging Information, if it does not show anything, please do the step Private Website Info https://support.metabox.io/topic/how-to-create-a-new-topic/.
December 31, 2020 at 10:14 PM #23805stijlXpres
ParticipantNothing shows up in debug mode unfortunatelly. Toggling between text-mode and visual-mode seems to trigger something. Which makes it unpredictable whether changes are being saved.
I am testing on local server so sharing access is not an option. Although I experience the same issues on live server.
January 4, 2021 at 7:56 PM #23839Gunvor
ParticipantI’m going to create a feature request for the developer team to support this case.
Could you please tell me how long it will take to fix it? Or maybe there are some hack to fix it before your developer team do? Now I use old version of MetaBox.
January 4, 2021 at 8:15 PM #23840SLG Marketing
ParticipantHi Long Nguyen
Sorry for the delay in replying to you, we were on annual leave over the New Year period.
I can confirm updating to 5.3.6 has fixed the issues we were having.
Thanks for the quick turn around on this!
January 5, 2021 at 6:39 PM #23852SLG Marketing
ParticipantHi
We've had some more issues with this. Can you re-open the support thread?
While the content is now visible in the "Visual" tab, changes made there are not saved.
Any advice on how to resolve this?
January 5, 2021 at 7:03 PM #23853stijlXpres
ParticipantHi,
We are still experiencing similar issues as described by SLG Marketing.
January 5, 2021 at 9:04 PM #23854JC
ParticipantHi,
I too have this problem with empty wysiwyg-fields. Seems to work after I save some content in text-modus and switch to visible afterwards.
January 5, 2021 at 10:29 PM #23856Long Nguyen
ModeratorHi guys,
I've tried to create a cloneable, sort clone group and a sub-field WYSIWYG but do not see any issue. Screen record https://share.getcloudapp.com/NQuKAONx.
Could you please share a screen record of the issue? Follow the step Debugging Information, and share the information in the step Private Website Info https://support.metabox.io/topic/how-to-create-a-new-topic/.
-
AuthorPosts
- You must be logged in to reply to this topic.