InsertOrderedList creates incorrect selection
InsertOrderList command creates a numbered ordered list for the selection. We try to restore the original selection by storing the index of the original start and end positions. There are cases where after list command is applied the index changes, causing wrong selection shown. This CL tries to fix those cases by introducing a TextIteratorBehavior, which suppresses the extra new line added for a <p> tag. Bug: 345935 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I8019f6176f859f4d2c19030e08e1836b1f05a27d Reviewed-on: https://chromium-review.googlesource.com/850252 Commit-Queue: Tanvir Rizvi <tanvir.rizvi@samsung.com> Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#532341}
Showing
Please register or sign in to comment