Nenad, Thanks a lot for your function, it worked at the first try. I dont want to abuse, but, can you give me some pointers on how to correct a weird behavour in the applet?
ill try to explain what is happening now:
lets suppose we write the following:
"This is a Link composed of several words and this is the rest of the text"
if we add an external link to "Link composed of several words"
the final document when we save it would be:
"This is a Link composed of several words and this is the rest of the text"
and "Link composed of several words" would display with a blue underline in the editor.
right?
now, i have noticed that if you double click on any of the words "Link", "composed", "of", "several", "words" or even on the spaces between them. the pop-up window to edit the properties will appear, and after you close that window only the word where you clicked would be selected.
for instance:
we have the following:
"This is a Link composed of several words and this is the rest of the text"
and "Link composed of several words" would display with a blue underline in the editor.
if i double click on the word "composed" the pop up window to edit the properties will appear, i close it, but only the word "composed" would be selected instead of the whole "Link composed of several words".
can you please give me some pointers on how to make that after editing some element the whole element would be selected and not only the word i clicked on?