#JC-643 Made replacement of selected text for url bb-code instead of inserting url label to the right of selected text if selected text and label are different. Made changes according to the code convention