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

Mathtype integration interferes with other double-click handling #1057

Open
bendemboski opened this issue Dec 5, 2024 · 1 comment
Open
Labels
type:bug Something isn't working

Comments

@bendemboski
Copy link

Description

I have experienced this in the CKEditor5 plugin, but I believe it applies to all integrations. Because of this line, other double-click handlers installed after the Mathtype integration's double-click handler or higher in the DOM will not work.

In my case, I have another unrelated feature that tries to listen for double-clicks and when the mathtype plugin is enabled, that feature doesn't work.

Environment

Which version of MathType does this happen in? @wiris/[email protected]

What is the relevant software and their versions?

  • Editor (CKEditor, Froala, TinyMCE, etc.) CKEditor5 44.0.0
  • Framework (Angular, React, etc.)
  • Browser (Chrome, Firefox, etc.) all
  • Operating System (Windows, macOS, Ubuntu, etc.) all

Steps to reproduce

Write code that adds a dblclick handler to the editor root after the integration has installed its handler, or that adds a dblclick handler to a higher-in-the-DOM element. Double-click inside the editor.

Expected result

The handler is called

Actual result

The handler is not called

@bendemboski bendemboski added the type:bug Something isn't working label Dec 5, 2024
@bendemboski
Copy link
Author

I wonder if #1059 will remove the need for that problematic stopImmediatePropagation() line of code because it prevents the double-event registration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant