WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6878 closed defect (bug) (invalid)

In TinyMCE switch to paragraph after entering text with preformatted looses text style

Reported by: asandler Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5.1
Component: TinyMCE Keywords:
Focuses: Cc:

Description

To reproduce, switch to preformatted style, enter some text (single or few lines) and then switch to paragraph. Style of the preformatted text will change back to paragraph.

Seen with Firefox 3.0b5 and IE7.

Change History (2)

comment:1 in reply to: ↑ description azaozz6 years ago

  • Milestone 2.5.2 deleted

Replying to asandler:

... Style of the preformatted text will change back to paragraph.

I'm not sure I follow... Switching to paragraph will change the styling to a paragraph, isn't that why you're switching?

In HTML line breaks and spaces are not preserved except in the <pre> tag. Switching from preformatted to paragraph replaces the <pre> tags with <p> tags and the text is formatted accordingly.

comment:2 azaozz6 years ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.