Skip to content

Commit

Permalink
[blockly] Remove cross-tab-copy-paste plugin (#2419)
Browse files Browse the repository at this point in the history
It conflicts with the multi-select plugin and the same functionality is provided by the multi-select plugin

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng authored and florian-h05 committed Feb 28, 2024
1 parent 5997c28 commit 4ee3e54
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
18 changes: 0 additions & 18 deletions bundles/org.openhab.ui/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bundles/org.openhab.ui/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4ee3e54

Please sign in to comment.