Posted on: 10/28/2014 11:37:11 PM | Views : 759

Hi,
I installed FreeTextBox and got it running without any problems, I can insert custom strings via Javascript but I need to be able to get a selected text from within the editor to copy it into another text field but cannot figure out how to do this. I get the the complete text of the editor as a string but GetSelection does not seem to work.
function ShowSelection(ContentPlaceHolder1_content) //Richtig { var nicInstance = document.getElementById('ContentPlaceHolder1_content'); var nicInstance2 = document.getElementById('arry'); var text = nicInstance.value; var t = String(getSelection(text)).trim(); t2a = t.replace(' ', '_'); //alert(t); form = document.getElementById("aufnahme2"); var arry = nicInstance2.value; arry = arry.replace('<br>', '') var t2 = ""; var t3 = ""; var mytool_array2 ...

Go to the complete details ...