BubikolRamios
11-28-2012, 01:56 PM
I have div with contentEditable ="true"
I can read selection.
How to replace exact selection If I have forinstance divs innerHTML like(can't do it via regex):
foo billgates foo
How to replace second foo ?
is this http://stackoverflow.com/questions/4811822/get-a-ranges-start-and-end-offsets-relative-to-its-parent-container realy so complicated,and as said there can't be guarantied it is cross browser ?
I can read selection.
How to replace exact selection If I have forinstance divs innerHTML like(can't do it via regex):
foo billgates foo
How to replace second foo ?
is this http://stackoverflow.com/questions/4811822/get-a-ranges-start-and-end-offsets-relative-to-its-parent-container realy so complicated,and as said there can't be guarantied it is cross browser ?