Make WordPress Core

Opened 15 years ago

Closed 13 years ago

Last modified 13 years ago

#19462 closed defect (bug) (wontfix)

Visual Editor Preserving Whitespace Instead of Stripping It

Reported by: lincolnadams Owned by:
Priority: normal Milestone:
Component: TinyMCE Version: 3.2.1
Severity: normal Keywords:
Cc: Focuses:

Description

When using the Visual Editor, double spacing and beyond (otherwise known as whitespacing) is preserved. The expected behavior is that these whitespaces, intentional or not are stripped accordingly to conform to XHTML standards, with only preformatted text being the exception.

This behavior is particularly observed by those who double space between sentences, where the Visual Editor adds an invisible   after the first space.

Change History (2)

#1 @SergeyBiryukov
13 years ago

  • Component GeneralTinyMCE

#2 @azaozz
13 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

This is actually the default behavior in contenteditable mode in the browsers (not done by TinyMCE). Every other space is converted to  , so typing 6-7-8 spaces will be maintained and show on the front-end the way the user typed it.

We can strip the extra spaces but not sure if this is the right thing to do. Closing as wontfix for now, feel free to reopen with examples/user cases confirming why the default browser behavior should be changed.

Last edited 13 years ago by azaozz (previous) (diff)
Note: See TracTickets for help on using tickets.