WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 4 months ago

#48012 closed defect (bug) (worksforme)

Toggling from Text to Visual editing modes moves multi-paragraph <strong> and <em> tags

Reported by: mdrovdahl Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2.3
Component: TinyMCE Keywords:
Focuses: Cc:
PR Number:

Description

Steps to reproduce (tested with fresh WP instance, Version 5.2.3 with Classic Editor plugin v1.5):

  1. Create new post
  2. Paste in 5 paragraphs of lorem ipsum
  3. Edit post in "Text" mode
  4. Select 2 consecutive paragraphs
  5. Apply bold or italic to selection
  6. Save draft
  7. Switch to "Visual" mode, observe that only the first of the two paragraphs has formatting applied
  8. Switch back to "Text" mode, observe that the formatting tag has moved

Change History (1)

#1 @azaozz
4 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Looking at the steps to reproduce, seems you're trying to wrap paragraphs in "inline" tags. It should be the other way around: the inline tags should be inside the paragraphs. The paragraphs cannot be inside the inline tags. Something like <p><strong>123 test</strong></p>.

Note: See TracTickets for help on using tickets.