mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
16910a6e95
When setting contenteditable to false, editing session destroys HTMLEditor. Destroying HTMLEditor means that selection visibility is reset by FinalizeSelection. So after calling TearDownEditorOnWindow on nsHTMLDocument, we should initialize selection visibility if current focus is text control that has editor. MozReview-Commit-ID: 4V8kZtOtKO3 --HG-- extra : rebase_source : 9d90c12b3c93e4dfd95095ce29a26e5fdd83f952
19 lines
294 B
HTML
19 lines
294 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function init()
|
|
{
|
|
document.getElementById("t1").focus();
|
|
document.getElementById("t1").setSelectionRange(4, 4);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="init()">
|
|
<div id="d1">
|
|
<input type="text">
|
|
</div>
|
|
<input type="text" id=t1 value="ABCD">
|
|
</body>
|
|
</html>
|