Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-GU_Nodepack > GU Text Edit

ComfyUI Node: GU Text Edit

Class Name

G_TextEdit

Category
GU_Nodepack
Author
alexguryev (Account age: 2270days)
Extension
ComfyUI-GU_Nodepack
Latest Updated
2026-07-28
Github Stars
0.0K

How to Install ComfyUI-GU_Nodepack

Install this extension via the ComfyUI Manager by searching for ComfyUI-GU_Nodepack
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-GU_Nodepack in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

GU Text Edit Description

G_TextEdit lets you edit incoming text in the node and pass the revised text downstream.

GU Text Edit:

G_TextEdit lets you work with incoming text through an editable node interface and pass the resulting text to the next part of your workflow. It is intended for situations where you want to revise text without changing its upstream source. The node description also identifies protecting edited text from being refreshed on the next queue run as a goal; the supplied Python code does not show how that protection is implemented, so the exact behavior may depend on the accompanying editor interface.

GU Text Edit Input Parameters:

only

A STRING field displayed as a single-line widget, with the default value dynamic text edit !. The supplied execution code receives this value but does not read it when choosing the outgoing text, so changing it alone has no demonstrated effect on the result. No minimum or maximum length is specified.

text

The required incoming STRING, configured as a multiline input connection rather than a freely editable widget. The node uses its first received text value as the initial outgoing value. If edited content is available from the node’s editor interface, that content replaces the initial value. Connect the text you want to review or edit here. No default, minimum length, or maximum length is specified.

protect

A BOOLEAN widget with the options True and False; its default is False. The node’s description associates protection with keeping edited text from refreshing on the next queue run. However, the supplied execution code does not read this setting, so its effect cannot be confirmed from this source alone. There are no numeric minimum or maximum values.

GU Text Edit Output Parameters:

text_out

A STRING containing the text selected by the node. Normally, it starts as the first value received through text; when the node can retrieve edited content from its editor interface, that edited content takes precedence. Connect text_out to a downstream text or prompt input to use the resulting wording. Although the node accepts list-form inputs internally, this output is declared as a single value, not a list of separate text outputs.

GU Text Edit Usage Tips:

  • Connect a text-producing node to text, then connect text_out to the prompt or other text-consuming node where you want the revised wording to be used.
  • If you edit text in the node’s interface, run the workflow and check the downstream result: the supplied code uses retrieved editor content when available, otherwise it passes through the first incoming text value.
  • Treat protect as an interface setting whose effect should be verified in your installed version. Test it by editing the text, queuing the workflow again, and checking whether your edit remains.
  • Do not rely on changing only to alter text_out; the supplied execution code does not use that field to select the output.

GU Text Edit Common Errors and Solutions:

Required input is missing: text

  • Explanation: text is a required connection, so the workflow may fail validation or be unable to run if nothing supplies it.
  • Solution: Connect a node that produces a STRING to text, then queue the workflow again.

TypeError: 'NoneType' object is not subscriptable

  • Explanation: The code reads the first item of text and the hidden workflow data. If any of those expected values is missing, indexing it can raise this error. The exact cause depends on which value was absent.
  • Solution: Check that text is connected, then rerun the workflow. If the error persists, reload the workflow and verify that the node is running in a compatible ComfyUI environment with its required node-pack files available.

IndexError: list index out of range

  • Explanation: The node takes the first item from text and from hidden workflow data. An empty list in one of those positions can cause this error.
  • Solution: Ensure the upstream text connection supplies a value. If it does, reload or recreate the node and try again.

Edited text is not reflected in text_out

  • Explanation: The node passes through the first incoming text value unless it can retrieve edited content from its editor interface. The supplied source does not establish why an edit might be unavailable.
  • Solution: Confirm that the edit appears in the node interface, queue the workflow again, and inspect the connected downstream text. If it still passes through the original text, check that the node pack’s interface components are installed and loaded.

Changing only or protect does not change the output

  • Explanation: Neither field is read by the supplied Python execution code when it chooses text_out. Any behavior provided by the editor interface is not established by this source.
  • Solution: Supply the wording through text or the node’s editor interface, and verify protection behavior with a queue-run test rather than assuming the setting changes the outgoing text.

GU Text Edit Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-GU_Nodepack
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

GU Text Edit