Open GoogleCodeExporter opened 8 years ago
No, it's not a problem of double quotes.
If you write in box bottom left box:
<span>ciao</span>
and then move the cursor in the text area, these are the results:
|ciao => |ciao
c|iao => cia|o
ci|ao => ciao|
cia|o => ciao|
ciao| => ciao|
Original comment by mauro...@tiscali.it
on 11 Nov 2011 at 7:06
However, if you specify text/offset position and hit >Cursor, the cursor is
positioned correctly within the text area:
0, 0 => |ciao
0, 1 => c|iao
0, 2 => ci|ao
0, 3 => cia|o
0, 4 => ciao|
0, 5 => ciao|
Original comment by mauro...@tiscali.it
on 11 Nov 2011 at 7:09
Hi, can you give some solution to this problem?
I really need it...
Thank you!
Original comment by fenyvesi...@gmail.com
on 8 Jan 2012 at 2:04
Hmm I don't have access to IE9 handy right now, I'll have to see if I can find
a machine to try this on..
Original comment by koz...@gmail.com
on 11 Jan 2012 at 12:17
Looks like IE9 was processing the testElement (a div) and including it in the
text which added a \r\n to the range, hence the two characters shift.
All what is needed is to remove the 'div' before manipulating the range.
I've attached a patch.
Original comment by mma...@gmail.com
on 19 Jan 2012 at 11:02
Attachments:
Original issue reported on code.google.com by
mauro...@tiscali.it
on 11 Nov 2011 at 6:55