WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#7747 closed enhancement (fixed)

Strip Microsoft Word's conditional comment tags so they don't show up in Internet Explorer

Reported by: nyoungman Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6.1
Component: TinyMCE Keywords: needs-patch
Focuses: Cc:

Description

If content is pasted from Word directly into TinyMCE (instead of using the toolbar button), a lot of ugly tags are included. Most noticeably, there are what look like conditional comments (supportEmptyParas, etc.) that appear in Internet Explorer 6+ (Firefox and Safari hide the comments).

Since they only appear in Internet Explorer, they can be hard to catch. Is there something we can do to strip these out automatically (or all html comments?), rather than assuming users will always use the Paste from Word button.

More discussion at:
http://wordpress.org/support/topic/203271

Change History (3)

comment:1 FFEMTcJ5 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.8 to Future Release

comment:2 azaozz5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

This have been fixed upstream in TinyMCE.

comment:3 Denis-de-Bernardy5 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.