Adjusting text during inline edit

Hi

When performing an inline edit I need to adjust the text that can be edited. For instance say the TextBlock contains the text ‘Editable Not-editable’, I want the user only to be able to edit the ‘Editable’ text.

I’ve created a custom TextEditingTool and I’ve implemented a new version of doActivate that strips out the non-editable text but I’m not sure how to add the non-editable text back on when the edit completes. Is there a way to achieve this? If not I guess I’ll need two TextBlocks but I thought this way might be simpler for our app

Provide a TextBlock | GoJS API handler.

Although normally I would prefer the two TextBlock implementation, because often there need to be other differences between those sections of text besides TextBlock.editable.