Chromium Code Reviews
DescriptionKeep caret show around non-editable element under editable element
contenteditable would lose selection near inline non-editable element
so this CL allows to return the last editable position in order not to
lose the selection.
Here is an example:
<div contenteditable>editable1 <i contenteditable=false>readonly1</i></div>
<div contenteditable>editable2 <i contenteditable=false>readonly2</i></div>
<div>readonly3</div>
When we move the selection from the end of the text node("editable "),
the selection is located in the third div and then the caret is disappeared.
BUG=669229
TEST=editing/selection/move-cursor-over-uneditable-in-contenteditable.html
Patch Set 1 #Patch Set 2 : add test case #
Total comments: 1
Messages
Total messages: 13 (11 generated)
|
||||||||||||||||||||||||||||