Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#8334 closed defect (bug) (fixed)

Visual Editor: Backspace with no content kills focus in Safari. Additional backspaces sends the user backwards in history

Reported by: markjaquith Owned by: azaozz
Milestone: 2.7 Priority: high
Severity: major Version: 2.7
Component: TinyMCE Keywords:
Focuses: Cc:


In Safari:

If you press backspace when there is no content in the Visual Editor, it will lose focus. Pressing backspace again will result in you going back in your browser history.

TinyMCE ticket with patch:


Works for me. Attaching a patch for us.

High priority. I run into this on a near-daily basis. When composing a new post, I frequently start writing the first sentence, change my mind on its wording, and hold down backspace. Very frustrating.

Attachments (1)

8334.001.diff (16.7 KB) - added by markjaquith 13 years ago.

Download all attachments as: .zip

Change History (3)

#1 @azaozz
13 years ago

With this patch the editor cannot be emptied completely, some empty tags are left behind (like <blockquote>) and have to be removed by using the buttons on the toolbar.

This seems to be a workaround for a Safari bug where it deletes the text but doesn't remove all empty tags when all of the text is gone.

Since the editor loosing focus seems more annoying, I'm +1 for patching it.

#2 @azaozz
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9896]) Fix the editor losing focus on backspace when there is no more text to delete in Safari, props markjaquith, fixes #8334

Note: See TracTickets for help on using tickets.