Opened 14 years ago
Last modified 8 years ago
#8009 confirmed Bug
Paste From Word creates <a> tags with no attributes wherever contents are "highlighted" by Comments
Reported by: | Josh | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Plugin : Paste from Word | Version: | 3.0 |
Keywords: | Cc: | torque18@… |
Description
Please forgive the poor summary of this ticket, as it is hard to summarize.
When pasting content from Word, any Microsoft Word Comments are also pasted (whether or not "View Markup" is currently selected). This creates anchor links and footnotes in the content (which may or may not be desirable behavior) but also creates "empty"
<a>...</a>
tags around the first paragraph associated with the comment. The anchor tags are empty in the sense that they have no attributes such as "href" or "name".
I don't know if this is technically invalid html but it is certainly undesired behavior. Since our site stylesheets don't make these "a" elements stand out by default, the extra tags just remain undetected in the source code once the rest of the comment markup is deleted from the editor.
I attached a Word doc with contents that can be pasted into the editor to demonstrate.
I would also like to see at least a config option to strip out the comments completely, but I guess I can create a feature request ticket depending on how much of this behavior is considered a bug.
System: Windows XP, IE 8, Microsoft Word 2003
Attachments (1)
Change History (6)
Changed 14 years ago by
Attachment: | CKEditor-comment-test-2011-06-08.doc added |
---|
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.6.1 (SVN - trunk) → 3.0 |
Reproducible in all browsers from CKEditor 3.0
comment:3 Changed 11 years ago by
Component: | Core : Pasting → Plugin : Paste from Word |
---|
comment:4 Changed 8 years ago by
Milestone: | → CKEditor 4.6.0 |
---|
comment:5 Changed 8 years ago by
Milestone: | CKEditor 4.6.0 |
---|
We're unable to put any more PFW related tickets in 4.6.0. We'll revisit it later.
Pasting the attached word doc generates this source:
The offending tags can be seen on this line: