Make WordPress Core

Opened 7 years ago

Closed 5 years ago

#42106 closed defect (bug) (reported-upstream)

Academic titles changes when copy-paste from Word

Reported by: create24's profile create24 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.2
Component: Editor Keywords:
Focuses: Cc:

Description

Hey WordPress team. I found a bug!

When I copy numbered list or bullet list from Word with academic titles such as "prof. dr hab. inż." (in Polish) WordPress visual editor change name "prof." on the beginning.

For example:

Członkowie Rady Naukowej KGW:

  1. dr hab. inż. Helenka Białek
  2. prof. dr hab. inż. Grażyna Nowak
  3. prof. dr hab. inż. Żaneta Kowalczyk
  4. dr hab. inż. Jowita Żarko
  5. prof. dr hab. inż. Janina Roszpunek

changes to:

Członkowie Rady Naukowej KGW:

  1. dr hab. inż. Helenka Białek
  2. dr hab. inż. Grażyna Nowak
  3. dr hab. inż. Żaneta Kowalczyk
  4. dr hab. inż. Jowita Żarko
  5. dr hab. inż. Janina Roszpunek

When there is "prof" without dot at the end - everything is all right.

This bug only occurs when copying a numbered or bulleted list.

Attachments (1)

skad-rn-kgw.docx (12.3 KB) - added by create24 7 years ago.
Example of list

Download all attachments as: .zip

Change History (3)

@create24
7 years ago

Example of list

#1 @slushman
7 years ago

  • Keywords dev-feedback added

Hey @create24, thanks for posting your first ticket!

I can confirm this bug. When pasting that list from Word into a post, it removes the "prof." from the beginning of list items starting with "prof.". It only does this when pasting from Word, not plain text.

It appears to be a TinyMCE bug in their Paste plugin. WordPress core currently uses TinyMCE version 4.6.7, however, even the later versions still do the same thing. I tried pasting your example list into editors using different versions of TinyMCE here:

http://fiddle.tinymce.com/

or here:

https://codepen.io/tinymce/pen/YydQrY

The demo editor on their homepage doesn't produce the same results, but I believe its also running one of their paid plugins (PowerPaste) though: https://www.tinymce.com/. The demo editor on the PowerPaste page doesn't behave the same way as the free demo editors: https://store.ephox.com/products/powerpaste/.

I've reported the bug with TinyMCE. Hopefully, they will fix it and the version with the fix will get merged into core.

https://github.com/tinymce/tinymce/issues/4105

#2 @pento
5 years ago

  • Keywords dev-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Since this is a TinyMCE bug, I'm going to close this ticket to keep the discussion in one place.

Note: See TracTickets for help on using tickets.