ITADN

Mathtype integration interferes with other double-click handling

#1057Closedbendemboski 创建于 2024-12-05
type:bugstate:accepted
B
bendemboskicommented
## Description I have experienced this in the CKEditor5 plugin, but I believe it applies to all integrations. Because of [this line](https://github.com/wiris/html-integrations/blob/24feee2f78b05100c8cf9b5ffe05ec0658b5d12b/packages/devkit/src/integrationmodel.js#L671), 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/mathtype-html-integration-devkit@1.17.5 _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
关闭于 2025-10-22 2 条评论