Cursor move back in the Editor after text insert with action-sendmessage insert-text?

Hi,
it is possible after:

 <$action-sendmessage
 	$message="tm-edit-text-operation"
 	$param="insert-text"
 	text=<<include>>
 />

to place the cursor in the pasted text? So e.g. 5 steps back?

Hi,
I did reformat the code section of your post so it can be read and no elements missing. Instead of quote you can use code formatting like so … It’s 3 “backticks”

```
some code
```

You may use:

<$action-sendmessage
	$message="tm-edit-text-operation"
	$param="wrap-selection"
	prefix="[["
	suffix="]]"
/>

So the cursor will be between prefix and suffix. If you use: $:/core/ui/EditorToolbar/ in the AdvancedSearch : Shadows tab, you can see all the editor buttons and have a closer look how it’s done there.

1 Like

perfect, thank you. :slight_smile: