Skip to content

Mathtype integration interferes with other double-click handling #1057

@bendemboski

Description

@bendemboski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions