Bug #23337
closedhtmlArea RTE: RTE in Safari misbehaves when styling text with inline style button
0%
Description
When using the Bold, Italics, or Underline options in the RTE, Safari creates multiple issues.
1. When clicking on one of the styling icons, the textfield loses focus.
2. Once text is stylized and the styling icon is clicked to toggle off, the textfield loses focus.
3. Ultimately, when multiple lines of styled text are added, the user cannot advance to the next line to continue
I have included a video demonstrating the issue.
(issue imported from #M15329)
Files
Updated by Stanislas Rolland about 14 years ago
Thanks for the video!
The problem exists also in Google Chrome.
The issue arises, in WebKit browsers, due to the click event handling. I could not determine whether this is a WebKit feature or an ExtJS bug.
Changing the button click event to mousedown for WebKit browsers fixes the issue. This fixes this misbehaviour which may have affected other toggle buttons such as the list buttons.
Thus, the attached patch should fix the issue. Will also apply correctly to branch TYPO3_4-4.
Updated by Stanislas Rolland about 14 years ago
Please confirm that the attached patch fixes the issue.
Updated by Stanislas Rolland about 14 years ago
Please test patch attached to issue #15818.