Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > CommentChangeJson
Signature:
export interface CommentChangeJson extends CommentBaseJson
Extends: CommentBaseJson
Properties
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\u003eCommentChangeJson\u003c/code\u003e interface, extending \u003ccode\u003eCommentBaseJson\u003c/code\u003e, describes the JSON structure for comment change events within Blockly.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003enewContents\u003c/code\u003e and \u003ccode\u003eoldContents\u003c/code\u003e to represent the updated and previous comment text respectively.\u003c/p\u003e\n"],["\u003cp\u003eThis interface is used for serializing and deserializing comment change events, allowing for persistence and undo/redo functionality.\u003c/p\u003e\n"]]],["The `CommentChangeJson` interface, extending `CommentBaseJson`, defines the structure for representing changes to comment content within a system. It includes two key properties: `newContents`, which is a string representing the updated text of the comment, and `oldContents`, also a string, representing the comment's text before the change. Both are string types and capture the before and after of text modifications made.\n"],null,["[blockly](./blockly.md) \\\u003e [Events](./blockly.events_namespace.md) \\\u003e [CommentChangeJson](./blockly.events_namespace.commentchangejson_interface.md)\n\nEvents.CommentChangeJson interface\n----------------------------------\n\n**Signature:** \n\n export interface CommentChangeJson extends CommentBaseJson \n\n**Extends:** [CommentBaseJson](./blockly.events_namespace.commentbasejson_interface.md)\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|--------------------------------------------------------------------------------------------------------|-----------|--------|-------------|\n| [newContents](./blockly.events_namespace.commentchangejson_interface.newcontents_propertysignature.md) | | string | |\n| [oldContents](./blockly.events_namespace.commentchangejson_interface.oldcontents_propertysignature.md) | | string | |"]]