Patch fixing this bug
To reproduce:
- Open IE8, visit some page at a WMF project (I tried it with [[commons:User:Lupo]])
- Click "edit"
- Place the cursor and/or select some text in the textarea. Choose a location somewhere in the middle of the text, not at the start.
- Click on "Special characters" on the toolbar. Wait for the section to load.
- Now change the character page: If "Latin" is displayed, click "IPA". The selection in the textarea disappears.
- Click on any of the characters on the IPA page (without re-selecting in the textarea, obviously!)
- The character is inserted at the very beginning of the text instead of where the cursor/selection was.
Expected behavior:
- After step 5, the selection is active in the textarea.
- In step 7, the character is inserted at the cursor position or replaces the selection.
The attached patch for jquery.wikiEditor.toolbar.js :
- solves this problem by saving the selection on mousedown and restoring at the end of the click handler of the bookmark,
- removes a stray linebreak,
- and makes sure that page tables are properly closed.
Version: unspecified
Severity: normal
Platform: PC
Attached: