Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#45691 new defect (bug)

In Code View Bolded Text Has Strong tag wrapped around each character

Reported by: codingsince007's profile codingsince007 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0.1
Component: Editor Keywords: needs-patch needs-testing
Focuses: Cc:

Description

When copying a word document over to create a new page, the formatting carries over...mostly. But when you look at the content in code view there are extra tags that is added which make the code look sloppy.

Here is a sample of the extraneous code added when viewing the code;

<p><strong>S</strong><strong>H</strong><strong>A</strong><strong>RING INFORMATION WITH ADVERTISERS </strong><strong>OR </strong><strong>OTHER THIRD </strong><strong>P</strong><strong>A</strong><strong>R</strong><strong>T</strong><strong>I</strong><strong>E</strong><strong>S</strong></p>

Why is it adding a strong tag around each character?

I am adding a screengrab of the Dev Tools and of WordPress 5.0 UI.

Attachments (2)

Guttenberg code view2.PNG (17.3 KB) - added by codingsince007 6 years ago.
Guttenberg Code View Extra Tags Created
Extra Strong Tags Added to Code.PNG (8.6 KB) - added by codingsince007 6 years ago.
Opera Developer Tools Code View Screenshot

Download all attachments as: .zip

Change History (4)

@codingsince007
6 years ago

Guttenberg Code View Extra Tags Created

@codingsince007
6 years ago

Opera Developer Tools Code View Screenshot

#1 follow-up: @joyously
6 years ago

  • Component changed from General to Editor

Did you try pasting the exact same thing into the Classic Editor, to isolate the culprit?

#2 in reply to: ↑ 1 @codingsince007
6 years ago

I have not. I know that Word sometimes causes issues but because most of the other text was fine it seems to be related to text that has bold formatting.

Replying to joyously:

Did you try pasting the exact same thing into the Classic Editor, to isolate the culprit?

Note: See TracTickets for help on using tickets.