Skip to Content
ToDiagram

Edit on the Diagram

Change values, add and remove fields, and build diagrams from the canvas instead of the text.

Everything you see on the canvas comes from the text of your document, and it works the other way too: change something on the canvas and ToDiagram updates the text for you.

Editing on the canvas and in the tree view is part of Pro. On the free plan you can edit the text, and the details panel of a ToDiagram or Mermaid node. See Plans and Limits.

Data documents

These steps apply to JSON, JSON Lines, YAML, CSV and XML.

The menu that opens when you right-click a field: Focus Parent Node, Edit Field, Edit Object, Copy, Open in New Tab, Hide field, Insert Before, Insert After and Delete

Edit a value or a key

Double-click the key or the value of a field. It becomes editable in place, with a small bar to change the type of the value. Press Enter to save or Esc to cancel.

The field menu

Right-click a field or a node for more.

ItemWhat it does
Focus Parent NodeMoves the view to the node this one hangs from
Edit FieldOpens the field in a dialog for editing
Edit ObjectOpens the whole object for editing
CopyCopies the value, the key or the JSON path of the field. On a node it reads Copy Node
Open in New TabOpens the field or node as its own document
Hide fieldHides this field everywhere in the diagram. See Fields
Insert Inside, Insert Before, Insert AfterAdds an object, an array or a value
DeleteRemoves the field or the node

In YAML, XML and CSV an edit made on the canvas writes the whole document again, so comments and hand formatting can change. Edit the text directly if you need to keep them.

ToDiagram documents and Mermaid flowcharts

Diagrams you design yourself have more tools: a node toolbar, a details panel and edges you can draw. They work in ToDiagram format documents and in Mermaid flowcharts. Mermaid entity relationship diagrams can be edited on the canvas too. In a sequence diagram you can double-click a message to change its text. The rest is edited as text.

The details panel

Click a node to open its details at the top right of the canvas. Click the pencil to edit, then click any part of the panel: the title, the id, the summary, the description, links, fields and colors. Each change is applied to the document as you make it.

A selected node and its details panel, showing a summary, a description and a link

The node toolbar

Right-click a node to open its toolbar.

The node toolbar above a selected node

ButtonWhat it does
ColorSets the color of the node
ShapeChanges the shape, for example to a diamond or a cylinder
IconPicks an icon or an image for the node
MoveMoves the node into another group. Click the group, or empty canvas to move it to the top level
DetailsOpens the details panel
More (the three dots)Go to a connected node, Create Node connected to this one, Move to, Edge to and Duplicate
DeleteRemoves the node

Add, connect and remove

  • Add a node: double-click empty canvas.
  • Rename a node: double-click it. The details panel opens with the title ready to edit.
  • Connect two nodes: click one of the dots on the sides of a node, then click the node to connect it to. Press Esc to cancel. More > Edge to does the same from a list.
  • Edit an edge: right-click it and choose Edit, or double-click its label. The same menu has Go to and Delete.
  • Delete: select one or more nodes and press Delete or Backspace.
  • Clear the selection: press Esc.

Read-only documents

You cannot edit a document shared with you as a viewer, or a document that shows live content from a URL. The menus then offer View Field and View Object instead of the edit items.

On this page