I’m seeing an issue happening where paragraph and line breaks are being stripped out of WYSIWYG boxes inside a repeater. It only happens when I drag and drop the repeater groups to sort them in the post type they’re assigned to.
I noticed that as soon as I start dragging the repeater item, the WYSIWYG box turns into a textbox, and this seems to be the point were paragraphs/line breaks are stripped out. As soon as I drop the item, everything that was previously on multiple lines is now on one line.
Can you please confirm that you are also seeing this (I hope it’s not just me!), and if you have any ideas about a fix?
Thanks again for the quick response. Unfortunately, I’m still having an issue with this. I downloaded the code from GitHub and tried it, and now all WYSIWYG fields are showing as blank when I load a post to edit it.
The existing data is still being saved, because the data is there when the edit post screen is loading. As soon as the WYSIWYG editor loads, everything disappears. I couldn’t test the drag and dropping since there is no data in the fields.
Can you please take a further look?
Looks like this issue is back…
– WP 4.1 with ACF PRO 5.1.5
– Totally clean install to test this issue
– ACF is the only plugin
– Theme is bare except for WP_DEBUG enabled in functions.php
– No PHP errors on admin page or JS errors in console
The field group holds a repeater field with a WYSIWYG field inside. When editing a post, re-sorting the repeater causes the WYSIWYG field to remove all paragraph and line breaks. This only happens when the WYSIWYG is in Visual mode (Text mode preserves the breaks OK).
I made a quick 1 min. screencast showing the issue here: https://www.youtube.com/watch?v=JoC71DGS1eM
Any ideas? Thank you!
The topic ‘Repeater w/WYSIWYG – Drag & Drop Issue’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.