WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#28282 closed defect (bug) (fixed)

Remove   from an empty paragraphs inside the visual editor

Reported by: iseulde Owned by: azaozz
Milestone: 4.0 Priority: normal
Severity: normal Version:
Component: TinyMCE Keywords: has-patch
Focuses: Cc:

Description

An   is added to empty paragraphs to preserve them, but when inserting the content again in TinyMCE these spaces are not removed. So if I add an empty paragraph and come back later again to add something, a space is added before the cursor (And in most cases you don't even notice).

Attachments (2)

28282.patch (1.1 KB) - added by iseulde 8 years ago.
28282.2.patch (1.2 KB) - added by iseulde 8 years ago.

Download all attachments as: .zip

Change History (6)

@iseulde
8 years ago

#1 @iseulde
8 years ago

  • Keywords has-patch added

The patch also fixes the case where two or more spaces are added and the paragraph is not kept.
That expressing also doesn't need capturing parentheses.

@iseulde
8 years ago

#2 @SergeyBiryukov
8 years ago

  • Milestone changed from Awaiting Review to 4.0

#3 @iseulde
8 years ago

#28341 was marked as a duplicate.

#4 @azaozz
8 years ago

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

In 28685:

TinyMCE: remove &nbsp from empty paragraphs inside the visual editor, props avryl, fixes #28282

Note: See TracTickets for help on using tickets.