LB-803: "Add link" should copy marked text to "Link text" field, not delete marked text

Get selected text in click callback not to lose focus.
Merge pull request #61 from petrjasek/lb-803-add-link

Lb 803 add link