https://bugzilla.wikimedia.org/show_bug.cgi?id=32451
Web browser: Internet Explorer 8.x
Bug #: 32451
Summary: Click on bookmark in enhanced toolbar loses selection
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Keywords: javascript, need-review, patch
Severity: normal
Priority: Unprioritized
Component: WikiEditor
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 9480
--> https://bugzilla.wikimedia.org/attachment.cgi?id=9480
Patch fixing this bug
To reproduce:
1. Open IE8, visit some page at a WMF project (I tried it with
[[commons:User:Lupo]])
2. Click "edit"
3. 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.
4. Click on "Special characters" on the toolbar. Wait for the section to load.
5. Now change the character page: If "Latin" is displayed, click "IPA". The
selection in the textarea disappears.
6. Click on any of the characters on the IPA page (without re-selecting in the
textarea, obviously!)
7. 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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l