Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key-sequence and contenteditable issue #29

Open
dianaprajescu opened this issue May 21, 2015 · 3 comments
Open

Key-sequence and contenteditable issue #29

dianaprajescu opened this issue May 21, 2015 · 3 comments

Comments

@dianaprajescu
Copy link

It seems that if you have a <div contenteditable="true"><p>aaaa</p></div> and place the cursor at the beginning of the <p> element (in front of aaaa) and hit the Simulate key-sequence button, the text is not entered in the correct position.

You would expect to have <div contenteditable="true"><p>foobaraaaa</p></div>, instead you get <div contenteditable="true">foobar<p>aaaa</p></div>. Otherwise, if the cursor is anywhere else in the text it works as expected.

I have edited your demo jsfiddle in order for you to be able to test what I'm trying to say: http://jsfiddle.net/Psjhf/721/

Look forward to hearing your opinion on this.

@j-ulrich
Copy link
Owner

hmm.. unfortunately, I don't know much about the way selections work. So I can't tell if this is a bug or expected behavior, i.e. if clicking in front of the aaaa is supposed to create a selection within the <p> element or in front of it.
I wonder if recent versions of bililiteRange handle such situations differently. Then #28 might fix this.

@hiteshdua1
Copy link

Hi @dianaprajescu @j-ulrich ,

I don't believe the #28 solved this issue. Did you get a fix or work around for this issue ?

Looking forward to hear from you.

@hiteshdua1
Copy link

Hi @dianaprajescu and @j-ulrich ,

I have investigated this issue, leads to billilite rage bounds

Further investigation can be found in the logged issue.

dwachss/bililiteRange#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants