Selection in decoration is weird

I just want getting selection from middle of decorated node. then want to change its style to BOLD or Italic.

But This is not easy. The mouse hold action to making block is not working . but It is working sometimes from backward(?).

Could you tell me what should I know?

This is demo from collab-example from