Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#36863 closed defect (bug) (fixed)

Editor Help dialog shortcut on different platforms and the iframe title

Reported by: afercia Owned by: azaozz
Priority: normal Milestone: 4.6
Component: TinyMCE Version:
Severity: normal Keywords: has-patch has-screenshots
Cc: Focuses: accessibility, javascript

Description

When entering the Editor, screen readers announce the title attribute set on the Editor iframe. Iframes must always have a title attribute to give context to users. By the way, the current title text is always the same, regardless of the platform:

Rich Text Area. Press Alt-Shift-H for help

While Alt-Shift-H perfectly works on Windows, on a Mac the keyboard shortcut is different and it's Control-Alt-H. Mac and VoiceOver users will still ear "Alt-Shift-H" though.

It would be great to use a different iframe title attribute depending on the used platform. Maybe also changing it on the fly with JavaScript could work (would need some testing).

Attachments (1)

36863.diff​ (2.2 KB ) - added by afercia 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @afercia
10 years ago

  • Focuses javascript added
  • Keywords has-patch has-screenshots added
  • Milestone Awaiting Review → Future Release

36863.diff​ is a first pass, uses tinymce.Env.mac which is the same check used the keyboard shortcuts help dialog. Screenshot on Safari+VoiceOver:

https://cldup.com/z0IyMaJTkh.png

#2 @azaozz
10 years ago

  • Component Editor → TinyMCE
  • Milestone Future Release → 4.6

Patch looks good, lets fix this :)

There is already preInit callback in there, no need for another. Also there is editor.iframeElement now.

#3 @azaozz
10 years ago

  • Owner set to azaozz
  • Resolution → fixed
  • Status new → closed

In 38110:

TinyMCE: replace the editor iframe title on MacOS to fix the help shortcut.

Props afercia, azaozz.
Fixes #36863.

Note: See TracTickets for help on using tickets.