Home › Forums › Bug Reports › Youtube auto embed triggers Unsaved Changes alert in wysiwyg › Reply To: Youtube auto embed triggers Unsaved Changes alert in wysiwyg
Hi James, thanks for looking into this. On further investigation it seems to be a conflict with Woocommerce. The bug does not appear without Woocommerce installed and active, so the steps to reproduce are…
1) install fresh WordPress
2) install ACF Pro
3) install Woocommerce
4) add ACF wysiwyg field to pages
5) add an embeddable youtube video URL to the wysiwyg field on a page (video appears)
6) Save page
Now when you navigate away you get “Changes you made may not be saved.”. Sometimes you have to click on the page (say, to close the ‘page updated’ message) to get the ‘unsaved changes’ message when navigating away, but other times it appears just by reloading via browser address bar.
Disable woocomemrce and the problem goes away. Add the youtube URL to the main content rather than the ACF wysiwyg and the problem does not occur (this only occurs with auto embed URLs in the ACF wysiwyg).
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.