Stay organized with collections
Save and categorize content based on your preferences.
blockly > clipboard > registry
clipboard.registry namespace
Functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eclipboard.registry\u003c/code\u003e namespace manages the registration of "pasters" used for pasting content in Blockly.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can register a new paster type using \u003ccode\u003eregister\u003c/code\u003e, associating it with a specific function to handle pasting.\u003c/p\u003e\n"],["\u003cp\u003eExisting paster types can be removed using the \u003ccode\u003eunregister\u003c/code\u003e function, preventing their use in pasting operations.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [clipboard](./blockly.clipboard_namespace.md) \\\u003e [registry](./blockly.clipboard_namespace.registry_namespace.md)\n\nclipboard.registry namespace\n----------------------------\n\nFunctions\n---------\n\n| Function | Description |\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [register(type, paster)](./blockly.clipboard_namespace.registry_namespace.register_1_function.md) | Registers the given paster so that it cna be used for pasting. |\n| [unregister(type)](./blockly.clipboard_namespace.registry_namespace.unregister_1_function.md) | Unregisters the paster associated with the given type. |"]]