Replaces the current selection with a text block
The method has no effect if the view is read-only.
All lines of the block except the last one are moved to the section, so the block contains only one line after this call (a block can be re-used for multiple replaces only if it is a single line block).