Hello
this is my first post. Actually whole days i search for smilar thread on the forum but all contents are related
editor.getSelection().getRange() gives current location of cursor! yes this gives but if press enter contentArea divided and nodes are like
Facebook
Google
innerHTML is like 'Facebook<br>Google' innerText is like 'FacebookGoogle'
so if cursor located to end of 'google'
then $find("RadEditor1").getSelection().getRange().endOffset = 6 and $find("RadEditor1").getSelection().getRange().
startContainer.data='Google'
if content is like 'Facebook Google' then $find("RadEditor1").getSelection().getRange().endOffset = 15 and $find("RadEditor1").getSelection().getRange().startContainer.data='Facebook Google'
i want cursor location gives position for whole content not for current line and if possible i d like to get current node of contentArea nodes which divided by new line or line breaks
this is my first post. Actually whole days i search for smilar thread on the forum but all contents are related
editor.getSelection().getRange() gives current location of cursor! yes this gives but if press enter contentArea divided and nodes are like
innerHTML is like 'Facebook<br>Google' innerText is like 'FacebookGoogle'
so if cursor located to end of 'google'
then $find("RadEditor1").getSelection().getRange().endOffset = 6 and $find("RadEditor1").getSelection().getRange().
startContainer.data='Google'
if content is like 'Facebook Google' then $find("RadEditor1").getSelection().getRange().endOffset = 15 and $find("RadEditor1").getSelection().getRange().startContainer.data='Facebook Google'
i want cursor location gives position for whole content not for current line and if possible i d like to get current node of contentArea nodes which divided by new line or line breaks