CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #4817

Inserting BB-Code without selection in editor

Added by Peter Schuster over 3 years ago. Updated over 2 years ago.

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.

bbcode_ieNoSelection.diff (947 Bytes) Peter Schuster, 2009-09-30 00:53

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.

Also available in: Atom PDF