Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text cursor jumps to ACF WYSIWYG field upon hitting enter key #946

Open
TomHWP opened this issue Jan 22, 2025 · 0 comments
Open

Text cursor jumps to ACF WYSIWYG field upon hitting enter key #946

TomHWP opened this issue Jan 22, 2025 · 0 comments

Comments

@TomHWP
Copy link

TomHWP commented Jan 22, 2025

Describe the bug
When editing a page with Gutenberg that contains ACF blocks with a WYSIWYG field the cursor jumps to the last WYSIWYG field on the page.

To Reproduce
Steps to reproduce the behavior:

  1. Edit or create a page
  2. Add an ACF Block that contains a WYSIWYG field with default settings
  3. Switch ACF Block to Edit view
  4. Now click the title or a Gutenberg paragraph and hit the Enter key
  5. Cursor jumps to the last ACF WYSIWYG field on the page (that is in Edit mode)

Expected behavior
The text cursor should just create a new paragraph instead of jumping to the ACF WYSIWYG field.

Screenshots or Video
https://github.com/user-attachments/assets/6e8ff233-3d42-4d74-835d-b702d169165d

Version Information:

  • WordPress Version: 6.7.1
  • PHP Version: 7.4
  • ACF Version: ACF PRO 6.3.12
  • Browser: Chrome

Additional context
I already did some digging. I think it has something to do with TinyMCE because when I enable Delay Initialization (TinyMCE will not be initialized until field is clicked) the cursor doesn't jump to the WYSIWYG field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant