Bug #4817
Inserting BB-Code without selection in editor
| Status: | Resolved | Start date: | 2009-09-30 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | Forum | |||
| Target version: | 1.9.0 | Estimated time: | 0.10 hour | |
| Votes: | 0 |
Description
When clicking on a bb-code button without selecting text before hand the bb code is inserted on top of the page.
This bug occurs only in internet explorer.
It occurs, because document.selection.createRange() is not linked to the editor textbox, when there is no selection.
Solution:
Insert the bb code at the end of the current editor textbox value, if the text value of the selection is empty.
History
Updated by Hauke Hain over 3 years ago
Strange. Once I had the same hevaiour like you described it (#3083).
And now I can reproduce it again. I think I made the mistake and didn't test the bbcodes in IE again, only the smilies...
Thank you for the patch!
Updated by Martin Helmich over 3 years ago
- Category set to Forum
- Status changed from New to Accepted
- Assignee set to Martin Helmich
- Target version set to 1.9.0
- Estimated time set to 0.10
Updated by Martin Helmich over 3 years ago
- Status changed from Accepted to Resolved
- Assignee deleted (
Martin Helmich) - % Done changed from 0 to 100
Fixed in r28510.