Methods
cleanup()
Clean up the editor instance
- Source:
handleEditorChange()
Handle changes in the editor content
- Source:
initialize()
Initialize the JSON editor with the given content
- Source:
parse()
Parse the JSON content to the scene
- Source:
updateContent(content, oldContentopt, forceopt)
Update the editor's content, optionally highlighting changes
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
content |
string | New content for the editor |
||
oldContent |
string |
<optional> |
Previous content for diff calculation |
|
force |
boolean |
<optional> |
false | Force update the content even if the editor is out of sync |
- Source: