mirror of
https://github.com/google/blockly.git
synced 2026-02-01 05:00:11 +01:00
feat!: Add context menu options for workspace comments (#8035)
* feat: add context menu support and migrate easy options * feat: pass events to context menu options * chore: migrate final comment context menu option * feat: add exports for comment context menu items * chore: PR comments
This commit is contained in:
@@ -69,7 +69,10 @@
|
||||
},
|
||||
});
|
||||
initToolbox(workspace);
|
||||
|
||||
workspace.configureContextMenu = configureContextMenu;
|
||||
Blockly.ContextMenuItems.registerCommentOptions();
|
||||
|
||||
// Restore previously displayed text.
|
||||
if (sessionStorage) {
|
||||
var text = sessionStorage.getItem('textarea');
|
||||
@@ -265,11 +268,6 @@
|
||||
},
|
||||
};
|
||||
menuOptions.push(screenshotOption);
|
||||
|
||||
// Adds a default-sized workspace comment to the workspace.
|
||||
menuOptions.push(
|
||||
Blockly.ContextMenu.workspaceCommentOption(workspace, e),
|
||||
);
|
||||
}
|
||||
|
||||
function logger(e) {
|
||||
|
||||
Reference in New Issue
Block a user