Skip to content

Commit 12859f9

Browse files
fix: CK4 block double click event
1 parent ce24fc5 commit 12859f9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

demos/html/ckeditor4/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ CKEDITOR.replace("editor", {
3232
name: "wirisplugins",
3333
items: ["ckeditor_wiris_formulaEditor", "ckeditor_wiris_formulaEditorChemistry"],
3434
},
35-
{ name: "others" },
35+
{ name: "others", items: ["Image"] },
3636
],
3737

3838
licenseKey: process.env.CKEDITOR4_API_KEY || "",

packages/devkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wiris/mathtype-html-integration-devkit",
3-
"version": "1.17.8",
3+
"version": "1.17.11",
44
"description": "Allows to integrate MathType Web into any JavaScript HTML WYSIWYG rich text editor.",
55
"keywords": [
66
"chem",

packages/devkit/src/integrationmodel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@ export default class IntegrationModel {
668668
(element, event) => {
669669
this.doubleClickHandler(element, event);
670670
// Avoid creating the double click listener more than once for each element.
671-
event.stopImmediatePropagation();
671+
// This also allows CKEditor4 to add their own double click listener.
672+
event.preventDefault();
672673
},
673674
(element, event) => {
674675
this.mousedownHandler(element, event);

0 commit comments

Comments
 (0)