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

Fix TinyMCE loading behavior after page change #2494

Conversation

sascha-karnatz
Copy link
Contributor

What is this pull request for?

The old intersection observer was still active after leaving and reentering the page editor. An old intersection observer will now disconnect on initializer. This is not optimal, but we don't have a lifecycle hook to destroy the intersection on page leave.

Closes #2485

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

The old intersection observer was still active after leaving and reentering the page editor. An old intersection observer will now disconnect on initializer. This is not optimal, but we don't have a lifecycle hook to destroy the intersection on page leave.

Reference: AlchemyCMS#2485
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@tvdeyen tvdeyen merged commit 22024f0 into AlchemyCMS:main Jun 20, 2023
@sascha-karnatz sascha-karnatz deleted the 2485-tinymce-does-not-load-if-routing-with-turbolinks branch August 2, 2023 06:49
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

Successfully merging this pull request may close these issues.

Tinymce does not load if routing with Turbolinks
2 participants