Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#32079 closed defect (bug) (worksforme)

TinyMCE Paste from Word list item issue

Reported by: ew_holmes's profile 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)

word_content.PNG (2.8 KB) - added by ew_holmes 9 years ago.
Content sitting in Microsoft Word
pasted_content.PNG (5.7 KB) - added by ew_holmes 9 years ago.
Content once pasted into TinyMCE

Download all attachments as: .zip

Change History (5)

@ew_holmes
9 years ago

Content sitting in Microsoft Word

@ew_holmes
9 years ago

Content once pasted into TinyMCE

#1 @ew_holmes
9 years ago

  • Keywords 2nd-opinion needs-patch added

#2 @azaozz
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.

#3 @azaozz
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.