From 39dd014d182b4a0cedbe441ba3b35ee9e470f96d Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 20 Jul 2021 14:48:12 +0800 Subject: [PATCH] Fix customContextMenu --- _server/editor_blockly.js | 1 + 1 file changed, 1 insertion(+) diff --git a/_server/editor_blockly.js b/_server/editor_blockly.js index 0b6b23d4..739f664e 100644 --- a/_server/editor_blockly.js +++ b/_server/editor_blockly.js @@ -1110,5 +1110,6 @@ Blockly.BlockSvg.prototype.generateContextMenu = function() { } menuOptions.push(Blockly.ContextMenu.blockHelpOption(block)); + if (this.customContextMenu) this.customContextMenu(menuOptions); return menuOptions; };