Opened 21 months ago
Closed 21 months ago
#905 closed defect (fixed)
Link helper duplicates text and removes spaces/characters before and after
| Reported by: | isaackeyet | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 2.9 |
| Component: | Compose | Version: | |
| Keywords: | toolbar, link helper | Cc: |
Description
Steps to reproduce:
- Go to editor, type some text.
- In the middle of a sentence, select a word or two and create a link.
- Title is prepopulated (good!), enter an URL, press Save.
- See havoc.
Looks like it removes spaces before and after, but sometimes words too. Seems to happen if the word before had a punctuation separator (eg comma). The text to be linked is inside the anchor like it should be, but after the link the same text is duplicated.
Note: none of this happens if a link is created where there was no text before, so it must be related to the recent changes for the format toolbar.
Change History (1)
comment:1 Changed 21 months ago by isaackeyet
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

(In [2162]) Partially reverting http://ios.trac.wordpress.org/changeset/2076 .. The range.location recalculation seems to be the cause of the disappearing characters, when removed all seems to be fine. Fixes #905.