Docs »

Automations »

Toolbars »

comment.editor

The toolbar displayed in the comment editor.

Configuration

Navigate to Search » Toolbars.

Edit the record for comment.editor.

Add interactions using toolbar KATA.



interaction/snippets:
  uri: cerb:automation:wgm.example.snippet
  icon: paste
  tooltip: Paste snippets


The following placeholders are available in KATA:

Key  
record_* The dictionary of the record being commented upon.
worker_* The active worker record. Supports key expansion.

Interactions

Caller: cerb.toolbar.comment.editor

Inputs

The following caller_params are passed to the interaction:

Key Type  
record_id number The record ID being commented upon
record_type string The record type being commented upon
selected_text string The currently selected editor text
text string The full editor text

Output

The caller expects the following return: dictionary:

Key Type  
snippet string A snippet of text to insert in the editor at the cursor