Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#28282 closed defect (bug) (fixed)

Remove   from an empty paragraphs inside the visual editor

Reported by: iseulde's profile iseulde Owned by: azaozz's profile 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 11 years ago.
28282.2.patch (1.2 KB) - added by iseulde 11 years ago.

Download all attachments as: .zip

Change History (6)

@iseulde
11 years ago

#1 @iseulde
11 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
11 years ago

#2 @SergeyBiryukov
11 years ago

  • Milestone changed from Awaiting Review to 4.0

#3 @iseulde
11 years ago

#28341 was marked as a duplicate.

#4 @azaozz
11 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.