diff --git a/bundles/org.openhab.ui/web/package-lock.json b/bundles/org.openhab.ui/web/package-lock.json index 2e8de12ee..4198561ba 100644 --- a/bundles/org.openhab.ui/web/package-lock.json +++ b/bundles/org.openhab.ui/web/package-lock.json @@ -10,7 +10,6 @@ "license": "EPL-2.0", "dependencies": { "@blockly/field-slider": "^6.1.4", - "@blockly/plugin-cross-tab-copy-paste": "^5.0.5", "@blockly/plugin-workspace-search": "^8.1.2", "@blockly/shadow-block-converter": "^5.0.0", "@blockly/theme-dark": "^6.0.5", @@ -1977,17 +1976,6 @@ "blockly": "^10.0.0" } }, - "node_modules/@blockly/plugin-cross-tab-copy-paste": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@blockly/plugin-cross-tab-copy-paste/-/plugin-cross-tab-copy-paste-5.0.5.tgz", - "integrity": "sha512-fI+jffxuougKtSPxd0vR5GR6xlEshxHKiYEWe0SO+AYGqGh5CFbK3x/mRhCzLQddZ0JhWnrALQjh8R3i2e/Apw==", - "engines": { - "node": ">=8.17.0" - }, - "peerDependencies": { - "blockly": "^10.2.0" - } - }, "node_modules/@blockly/plugin-workspace-search": { "version": "8.1.2", "resolved": "https://registry.npmjs.org/@blockly/plugin-workspace-search/-/plugin-workspace-search-8.1.2.tgz", @@ -23624,12 +23612,6 @@ "integrity": "sha512-aa+jqMeXUpnckTjUv870OtEP+IppDFoVoEFzUPUH7mhMyFElRR/0ZHvbSI17TzIGd8Vdf7+WWzwYsjV4rbv2+A==", "requires": {} }, - "@blockly/plugin-cross-tab-copy-paste": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@blockly/plugin-cross-tab-copy-paste/-/plugin-cross-tab-copy-paste-5.0.5.tgz", - "integrity": "sha512-fI+jffxuougKtSPxd0vR5GR6xlEshxHKiYEWe0SO+AYGqGh5CFbK3x/mRhCzLQddZ0JhWnrALQjh8R3i2e/Apw==", - "requires": {} - }, "@blockly/plugin-workspace-search": { "version": "8.1.2", "resolved": "https://registry.npmjs.org/@blockly/plugin-workspace-search/-/plugin-workspace-search-8.1.2.tgz", diff --git a/bundles/org.openhab.ui/web/package.json b/bundles/org.openhab.ui/web/package.json index 517389fb0..1012e7f68 100644 --- a/bundles/org.openhab.ui/web/package.json +++ b/bundles/org.openhab.ui/web/package.json @@ -63,7 +63,6 @@ ], "dependencies": { "@blockly/field-slider": "^6.1.4", - "@blockly/plugin-cross-tab-copy-paste": "^5.0.5", "@blockly/plugin-workspace-search": "^8.1.2", "@blockly/shadow-block-converter": "^5.0.0", "@blockly/theme-dark": "^6.0.5", diff --git a/bundles/org.openhab.ui/web/src/components/config/controls/blockly-editor.vue b/bundles/org.openhab.ui/web/src/components/config/controls/blockly-editor.vue index 9975a18c8..ddc1dbf50 100644 --- a/bundles/org.openhab.ui/web/src/components/config/controls/blockly-editor.vue +++ b/bundles/org.openhab.ui/web/src/components/config/controls/blockly-editor.vue @@ -1089,7 +1089,6 @@ import Blockly from 'blockly' import { WorkspaceSearch } from '@blockly/plugin-workspace-search' import { javascriptGenerator } from 'blockly/javascript.js' import DarkTheme from '@blockly/theme-dark' -import { CrossTabCopyPaste } from '@blockly/plugin-cross-tab-copy-paste' import { ZoomToFitControl } from '@blockly/zoom-to-fit' import { shadowBlockConversionChangeListener } from '@blockly/shadow-block-converter' @@ -1227,20 +1226,6 @@ export default { const zoomToFit = new ZoomToFitControl(this.workspace) zoomToFit.init() - if (!Blockly.ContextMenuRegistry.registry.getItem('blockCopyToStorage')) { - const copyAndPasteOptions = { - contextMenu: true, - shortcut: true - } - const copyAndPastePlugin = new CrossTabCopyPaste() - copyAndPastePlugin.init(copyAndPasteOptions, () => { - console.log('There has been a block type error during copying and pasting') - }) - - Blockly.Msg['CROSS_TAB_COPY'] = 'Cross-Rule-Copy' - Blockly.Msg['CROSS_TAB_PASTE'] = 'Cross-Rule-Paste' - } - this.registerLibraryCallbacks(libraryDefinitions) const xml = Blockly.utils.xml.textToDom(this.blocks) Blockly.Xml.domToWorkspace(xml, this.workspace)