Opened 9 years ago
Closed 9 years ago
#32079 closed defect (bug) (worksforme)
TinyMCE Paste from Word list item issue
Reported by: | ew_holmes | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1.2 |
Component: | TinyMCE | Keywords: | 2nd-opinion needs-patch |
Focuses: | javascript | Cc: |
Description
Hi all,
I've discovered a bug, but I'm unsure whether it is actually a WordPress issue or a TinyMCE issue.
When copying + pasting a list from word, list item text is ignored when the contents are only a single word with a period.
<ul> <li>This works.</li> <li>Nope.</li> </ul>
My interpretation of this issue is that WordPress (or perhaps TinyMCE itself) is attempting to remove "duplicate list indicators". Something along the lines of this.
<ul> <li>a. a list item</li> <li>b. another list item</li> </ul>
In this example, it makes sense to remove a.
and b.
, but perhaps a more explicit regular expression pattern is required to ensure we are not removing words. Things like xi.
and iv.
etc. should also be caught, as they are roman numerals.
Attachments (2)
Change History (5)
#2
@
9 years ago
I believe this was a TinyMCE bug that was fixed. Closing for now, please feel free to reopen if this still persists. In that case it would be good to open a TinyMCE issue too.
Content sitting in Microsoft Word