editor: Delete selected text before adding new

When inserting new text, delete selected text first.
1 file changed