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

JavaScript errors in Craft CMS CP when Article Editor plugin is enabled #28

Open
robinsm opened this issue Mar 27, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@robinsm
Copy link

robinsm commented Mar 27, 2024

Description:
When the Article Editor plugin is enabled, navigating between tabs in the Control Panel (CP) becomes impossible (in some entries but not all) due to JavaScript errors. Disabling the Article Editor plugin resolves the issue, indicating a potential conflict or bug within the plugin itself.

Steps to Reproduce:

  • Ensure the Article Editor plugin is enabled.
  • Navigate to any entry editing page in the CP.
  • Ensure there is at least one instance of the Article Editor in the current entry.
  • Attempt to switch tabs within the interface.

Expected Behavior:
The CP Tab navigation should work seamlessly without any errors, allowing users to edit and manage entries as needed.

Actual Behavior:
The console logs a JavaScript error related to a TypeError: Cannot read properties of undefined (reading '$tabContainer'), preventing tab navigation. This error seems to originate from the plugin's JavaScript files.

  • disabling the Article Editor 'block' doesn't resolve the issue.
  • deleting the Article Editor 'block' from the entry resolves the issue.

Console Errors:

jQuery.Deferred exception: Cannot read properties of undefined (reading '$tabContainer') TypeError: Cannot read properties of undefined (reading '$tabContainer')

Uncaught TypeError: Cannot read properties of undefined (reading '$tabContainer')
    at s.constructor.init (ElementEditor.js:94:44)
    at s.constructor.constructor (Base.js:20:15)

Environment:
Craft CMS version: 4.8.3 (and 4.8.6)
Article Editor Plugin version: 3.1.0

@Edsardio Edsardio added the bug Something isn't working label Apr 9, 2024
@Edsardio Edsardio self-assigned this Apr 9, 2024
@Edsardio Edsardio added the help wanted Extra attention is needed label May 10, 2024
@Edsardio
Copy link
Contributor

Hi @robinsm

I seem to be unable to reproduce the issue. Are you able to create a repository I can clone to reproduce the issue?

@krisMoca
Copy link

Hey I'm getting the same issue.
Craft CMS Solo version: 4.9.6
Article Editor Plugin version: 3.1.0

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants