[wp-trac] [WordPress Trac] #40723: Pasting Word content - then trying to remove tags via WYSIWYG - does not work
WordPress Trac
noreply at wordpress.org
Wed May 10 22:55:06 UTC 2017
#40723: Pasting Word content - then trying to remove tags via WYSIWYG - does not
work
----------------------------+-----------------------------
Reporter: karlgroves | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.7.4
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
WordPress 4.7.4
Some background: In the default configuration of the built-in editor,
selecting & highlighting text allows you to apply things like bold,
underline, italics, etc. to your content. You can also select & highlight
that same content to undo the bold/ underline/ italics. Furthermore, you
can create content that features these changes to the text, save the post,
come back, and undo it.
Unless it is pasted from Word.
'''Steps to Reproduce:'''
Using the "Visual" tab: Paste content from MS Word (Mac 2011) which
features bold/ underline/ italic text.
This results - quite shockingly - in pretty clean HTML being pasted in.
(This probably requires a relatively "clean" Word document using only
built-in styles.)
Select the "HTML" tab in the editor. Inspect the HTML generated. It will
feature pretty clean HTML and, in this use case, good ole 'strong', 'u',
and 'em' elements.
Next, attempt to "un-bold"/ "un-underline"/ "un-italicize" the text.
'''Expected Result:'''
The 'strong', 'u', and 'em' elements are removed just as they would be if
we'd edited the content directly in the editor instead of pasting.
'''Actual Result:'''
The content remains unchanged
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40723>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list