Update: Blockly工作区添加Comment模块
This commit is contained in:
@@ -100,7 +100,7 @@ class EditorBlockly extends EditorBase {
|
||||
|
||||
this.addPlugins = () => {
|
||||
const { editor } = this;
|
||||
// Blockly.ContextMenuItems.registerCommentOptions();
|
||||
Blockly.ContextMenuItems.registerCommentOptions();
|
||||
editor.configureContextMenu = (menuOptions, e) => {
|
||||
const workspaceSearchOption = {
|
||||
text: Blockly.Msg['WORKSPACE_SEARCH_OPEN'],
|
||||
|
||||
@@ -41,8 +41,6 @@ const {
|
||||
const { LibManager, File } = goog.isElectron? Electron : Web;
|
||||
const { Socket } = WebSocket;
|
||||
|
||||
Mixly.Editor = Mixly.Editor ?? {};
|
||||
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
const app = new App($('body')[0]);
|
||||
|
||||
@@ -42,6 +42,9 @@ API2.init = () => {
|
||||
Editor.blockEditor = blockPage.getEditor();
|
||||
Editor.codeEditor = codePage.getEditor();
|
||||
Object.assign(Blockly.Msg, HUES);
|
||||
Blockly.ALIGN_LEFT = Blockly.inputs.Align.LEFT;
|
||||
Blockly.ALIGN_CENTRE = Blockly.inputs.Align.CENTRE;
|
||||
Blockly.ALIGN_RIGHT = Blockly.inputs.Align.RIGHT;
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user